public abstract class ExceptionFactory
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ExceptionFactory.NotFoundException |
static class |
ExceptionFactory.WebException |
| Constructor and Description |
|---|
ExceptionFactory() |
| Modifier and Type | Method and Description |
|---|---|
static ExceptionFactory.WebException |
asInternalServerException(java.lang.Throwable ex) |
static ExceptionFactory.WebException |
badRequestException(java.lang.String message) |
static void |
checkBadRequest(boolean condition,
java.lang.String message) |
static <T> T |
checkBadRequest(boolean condition,
java.lang.String message,
T r) |
static <T> T |
checkNotFound(T t,
java.lang.String message) |
static ExceptionFactory.WebException |
conflictException(java.lang.String message) |
static ExceptionFactory.WebException |
forbiddenException(java.lang.String message) |
static ExceptionFactory.WebException |
internalServerException(java.lang.String message) |
static ExceptionFactory.WebException |
internalServerException(java.lang.String message,
java.lang.Throwable ex) |
static ExceptionFactory.NotFoundException |
notFoundException(java.lang.String message) |
static ExceptionFactory.WebException |
tooManyException(java.lang.String message) |
static ExceptionFactory.WebException |
unauthorisedException(java.lang.String message) |
public static <T> T checkNotFound(T t,
java.lang.String message)
public static ExceptionFactory.NotFoundException notFoundException(java.lang.String message)
public static ExceptionFactory.WebException asInternalServerException(java.lang.Throwable ex)
public static ExceptionFactory.WebException internalServerException(java.lang.String message, java.lang.Throwable ex)
public static ExceptionFactory.WebException internalServerException(java.lang.String message)
public static ExceptionFactory.WebException badRequestException(java.lang.String message)
public static ExceptionFactory.WebException forbiddenException(java.lang.String message)
public static ExceptionFactory.WebException unauthorisedException(java.lang.String message)
public static ExceptionFactory.WebException conflictException(java.lang.String message)
public static ExceptionFactory.WebException tooManyException(java.lang.String message)
public static void checkBadRequest(boolean condition,
java.lang.String message)
public static <T> T checkBadRequest(boolean condition,
java.lang.String message,
T r)