public class WroRuntimeException extends RuntimeException
| Constructor and Description |
|---|
WroRuntimeException(String message) |
WroRuntimeException(String message,
Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
Resource |
getResource() |
WroRuntimeException |
logError()
Logs the error of this exception.
|
WroRuntimeException |
setResource(Resource resource) |
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. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic WroRuntimeException(String message)
message - public WroRuntimeException logError()
public static WroRuntimeException wrap(Exception e)
WroRuntimeException and throw it.e - the exception to wrap.public static WroRuntimeException wrap(Exception e, String message)
WroRuntimeException and throw it.e - the exception to wrap.message - the message of the exception to wrap.public WroRuntimeException setResource(Resource resource)
resourceUri - The name of the resource being processed when exception occurs.Copyright © 2008-2014. All Rights Reserved.