ro.isdc.wro
Class WroRuntimeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
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
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
WroRuntimeException
public WroRuntimeException(String message,
Throwable cause)
- Parameters:
message
- cause
-
WroRuntimeException
public WroRuntimeException(String message)
- Parameters:
message
-
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.