@groovy.util.logging.Slf4j class FastRuntimeException extends java.lang.RuntimeException
A trick I learned from the Play Framework to short-circuit application execution in a performant way.
Constructor and description |
---|
FastRuntimeException() |
FastRuntimeException(java.lang.String message) |
Type Params | Return Type | Name and description |
---|---|---|
|
static AuthorizationFailureException |
authFailureEx(java.lang.String message, java.lang.String role) |
|
static AuthorizationFailureException |
authFailureEx(java.lang.String message, java.lang.String[] permissions) |
|
static java.lang.RuntimeException |
exception(java.lang.String message) |
|
java.lang.Throwable |
fillInStackTrace() |
|
static java.lang.RuntimeException |
parameterAssignmentEx(java.lang.String message) |
|
static java.lang.RuntimeException |
parameterAssignmentEx(java.lang.Exception e) |
|
void |
printStackTrace() |
|
static ValidationException |
validationEx(java.lang.String message) |
|
static ValidationException |
validationEx(java.lang.String message, diego.web.Http.MultiMap<java.lang.String> violations) |
Methods inherited from class | Name |
---|---|
class java.lang.RuntimeException |
java.lang.RuntimeException#printStackTrace(), java.lang.RuntimeException#printStackTrace(java.io.PrintStream), java.lang.RuntimeException#printStackTrace(java.io.PrintWriter), java.lang.RuntimeException#fillInStackTrace(), java.lang.RuntimeException#getCause(), java.lang.RuntimeException#initCause(java.lang.Throwable), java.lang.RuntimeException#toString(), java.lang.RuntimeException#getMessage(), java.lang.RuntimeException#getSuppressed(), java.lang.RuntimeException#getLocalizedMessage(), java.lang.RuntimeException#getStackTrace(), java.lang.RuntimeException#setStackTrace([Ljava.lang.StackTraceElement;), java.lang.RuntimeException#addSuppressed(java.lang.Throwable), java.lang.RuntimeException#wait(long, int), java.lang.RuntimeException#wait(), java.lang.RuntimeException#wait(long), java.lang.RuntimeException#equals(java.lang.Object), java.lang.RuntimeException#hashCode(), java.lang.RuntimeException#getClass(), java.lang.RuntimeException#notify(), java.lang.RuntimeException#notifyAll() |