public class Err extends RuntimeException
Modifier and Type | Class and Description |
---|---|
static class |
Err.BadRequest
Specific exception for bad request.
|
static class |
Err.Missing
Missing exception.
|
static class |
Err.Provisioning
Provisioning exception, throws by MVC routes when parameter binding fails.
|
static class |
Err.TypeMismatch
Type mismatch exception.
|
Constructor and Description |
---|
Err(StatusCode statusCode)
Creates an error with the given status code.
|
Err(StatusCode statusCode,
String message)
Creates an error with the given status code.
|
Err(StatusCode statusCode,
String message,
Throwable cause)
Creates an error with the given status code.
|
Modifier and Type | Method and Description |
---|---|
StatusCode |
getStatusCode()
Status code.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public Err(@Nonnull StatusCode statusCode)
statusCode
- Status code.public Err(@Nonnull StatusCode statusCode, @Nonnull String message)
statusCode
- Status code.message
- Error message.@Nonnull public StatusCode getStatusCode()
Copyright © 2019. All rights reserved.