public abstract class ExceptionFactory
extends java.lang.Object
| Constructor and Description |
|---|
ExceptionFactory() |
| Modifier and Type | Method and Description |
|---|---|
static io.polyglotted.spring.errorhandling.ExceptionFactory.WebException |
asInternalServerException(java.lang.Throwable ex) |
static io.polyglotted.spring.errorhandling.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 io.polyglotted.spring.errorhandling.ExceptionFactory.WebException |
conflictException(java.lang.String message) |
static io.polyglotted.spring.errorhandling.ExceptionFactory.WebException |
forbiddenException(java.lang.String message) |
static io.polyglotted.spring.errorhandling.ExceptionFactory.WebException |
internalServerException(java.lang.String message) |
static io.polyglotted.spring.errorhandling.ExceptionFactory.WebException |
internalServerException(java.lang.String message,
java.lang.Throwable ex) |
static io.polyglotted.spring.errorhandling.ExceptionFactory.NotFoundException |
notFound(java.lang.Class<?> clazz,
java.lang.String... paramsMap) |
static io.polyglotted.spring.errorhandling.ExceptionFactory.WebException |
tooManyException(java.lang.String message) |
static io.polyglotted.spring.errorhandling.ExceptionFactory.WebException |
unauthorisedException(java.lang.String message) |
public static io.polyglotted.spring.errorhandling.ExceptionFactory.NotFoundException notFound(java.lang.Class<?> clazz,
java.lang.String... paramsMap)
public static io.polyglotted.spring.errorhandling.ExceptionFactory.WebException asInternalServerException(java.lang.Throwable ex)
public static io.polyglotted.spring.errorhandling.ExceptionFactory.WebException internalServerException(java.lang.String message,
java.lang.Throwable ex)
public static io.polyglotted.spring.errorhandling.ExceptionFactory.WebException internalServerException(java.lang.String message)
public static io.polyglotted.spring.errorhandling.ExceptionFactory.WebException badRequestException(java.lang.String message)
public static io.polyglotted.spring.errorhandling.ExceptionFactory.WebException forbiddenException(java.lang.String message)
public static io.polyglotted.spring.errorhandling.ExceptionFactory.WebException unauthorisedException(java.lang.String message)
public static io.polyglotted.spring.errorhandling.ExceptionFactory.WebException conflictException(java.lang.String message)
public static io.polyglotted.spring.errorhandling.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)