public static enum ExceptionDataMapper.ExceptionData extends Enum<ExceptionDataMapper.ExceptionData>
| Enum Constant and Description |
|---|
ENTITY_CONSTRAINT_VIOLATION |
ENTITY_NOT_FOUND |
GENERIC_EXCEPTION |
ILLEGAL_ARGUMENT |
NULL_POINTER |
TRANSACTION_ROLLBACK |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends Throwable> |
getExceptionClass() |
String |
getI18nKey() |
ServerSideExceptionInfo |
getServerSideExceptionInfoFromException(Throwable exception) |
org.springframework.http.HttpStatus |
getStatusCode() |
static ExceptionDataMapper.ExceptionData |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ExceptionDataMapper.ExceptionData[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExceptionDataMapper.ExceptionData GENERIC_EXCEPTION
public static final ExceptionDataMapper.ExceptionData ENTITY_CONSTRAINT_VIOLATION
public static final ExceptionDataMapper.ExceptionData ILLEGAL_ARGUMENT
public static final ExceptionDataMapper.ExceptionData NULL_POINTER
public static final ExceptionDataMapper.ExceptionData ENTITY_NOT_FOUND
public static final ExceptionDataMapper.ExceptionData TRANSACTION_ROLLBACK
public static ExceptionDataMapper.ExceptionData[] values()
for (ExceptionDataMapper.ExceptionData c : ExceptionDataMapper.ExceptionData.values()) System.out.println(c);
public static ExceptionDataMapper.ExceptionData valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic org.springframework.http.HttpStatus getStatusCode()
public String getI18nKey()
public ServerSideExceptionInfo getServerSideExceptionInfoFromException(Throwable exception)
Copyright © 2017–2020 JBoss by Red Hat. All rights reserved.