ro.isdc.wro
Class WroRuntimeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by ro.isdc.wro.WroRuntimeException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CssLintException, InvalidGroupNameException, LinterException, RecursiveGroupDefinitionException, UnauthorizedRequestException

public class WroRuntimeException
extends RuntimeException

Base Wro Runtime exception. All exceptions will extend this runtime exception.

Author:
Alex Objelean
See Also:
Serialized Form

Constructor Summary
WroRuntimeException(String message)
           
WroRuntimeException(String message, Throwable cause)
           
 
Method Summary
 WroRuntimeException logError()
          Logs the error of this exception.
static WroRuntimeException wrap(Exception e)
          Wraps original exception into WroRuntimeException and throw it.
static WroRuntimeException wrap(Exception e, String message)
          Wraps original exception into WroRuntimeException and throw it.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WroRuntimeException

public WroRuntimeException(String message,
                           Throwable cause)
Parameters:
message -
cause -

WroRuntimeException

public WroRuntimeException(String message)
Parameters:
message -
Method Detail

logError

public WroRuntimeException logError()
Logs the error of this exception. By default errors are logged with DEBUG level. This method will use ERROR level.


wrap

public static WroRuntimeException wrap(Exception e)
Wraps original exception into WroRuntimeException and throw it.

Parameters:
e - the exception to wrap.

wrap

public static WroRuntimeException wrap(Exception e,
                                       String message)
Wraps original exception into WroRuntimeException and throw it.

Parameters:
e - the exception to wrap.
message - the message of the exception to wrap.


Copyright © 2008-2013. All Rights Reserved.