public enum HttpStatusToExceptionMapper extends java.lang.Enum<HttpStatusToExceptionMapper>
| Enum Constant and Description |
|---|
_202 |
_304 |
_401 |
_403 |
_404 |
_409 |
_411 |
_412 |
_422 |
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Class<? extends CommandException> |
exceptionToThrow |
| Modifier and Type | Method and Description |
|---|---|
CommandExceptionError |
getError() |
CommandException |
getException(CommandExceptionError customError) |
java.lang.Class<? extends CommandException> |
getExceptionToThrow() |
int |
getHttpStatus() |
static HttpStatusToExceptionMapper |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HttpStatusToExceptionMapper[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpStatusToExceptionMapper _202
public static final HttpStatusToExceptionMapper _401
public static final HttpStatusToExceptionMapper _403
public static final HttpStatusToExceptionMapper _404
public static final HttpStatusToExceptionMapper _304
public static final HttpStatusToExceptionMapper _409
public static final HttpStatusToExceptionMapper _411
public static final HttpStatusToExceptionMapper _412
public static final HttpStatusToExceptionMapper _422
protected java.lang.Class<? extends CommandException> exceptionToThrow
public static HttpStatusToExceptionMapper[] values()
for (HttpStatusToExceptionMapper c : HttpStatusToExceptionMapper.values()) System.out.println(c);
public static HttpStatusToExceptionMapper valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic int getHttpStatus()
public java.lang.Class<? extends CommandException> getExceptionToThrow()
public CommandExceptionError getError()
public CommandException getException(CommandExceptionError customError)
Copyright © 2012-2020 42 BV. All Rights Reserved.