Package org.optaweb.employeerostering
Enum ExceptionDataMapper.ExceptionData
- java.lang.Object
-
- java.lang.Enum<ExceptionDataMapper.ExceptionData>
-
- org.optaweb.employeerostering.ExceptionDataMapper.ExceptionData
-
- All Implemented Interfaces:
Serializable,Comparable<ExceptionDataMapper.ExceptionData>
- Enclosing class:
- ExceptionDataMapper
public static enum ExceptionDataMapper.ExceptionData extends Enum<ExceptionDataMapper.ExceptionData>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ENTITY_CONSTRAINT_VIOLATIONENTITY_NOT_FOUNDGENERIC_EXCEPTIONILLEGAL_ARGUMENTNULL_POINTERTRANSACTION_ROLLBACK
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<? extends Throwable>getExceptionClass()StringgetI18nKey()ServerSideExceptionInfogetServerSideExceptionInfoFromException(Throwable exception)org.springframework.http.HttpStatusgetStatusCode()static ExceptionDataMapper.ExceptionDatavalueOf(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.
-
-
-
Enum Constant Detail
-
GENERIC_EXCEPTION
public static final ExceptionDataMapper.ExceptionData GENERIC_EXCEPTION
-
ENTITY_CONSTRAINT_VIOLATION
public static final ExceptionDataMapper.ExceptionData ENTITY_CONSTRAINT_VIOLATION
-
ILLEGAL_ARGUMENT
public static final ExceptionDataMapper.ExceptionData ILLEGAL_ARGUMENT
-
NULL_POINTER
public static final ExceptionDataMapper.ExceptionData NULL_POINTER
-
ENTITY_NOT_FOUND
public static final ExceptionDataMapper.ExceptionData ENTITY_NOT_FOUND
-
TRANSACTION_ROLLBACK
public static final ExceptionDataMapper.ExceptionData TRANSACTION_ROLLBACK
-
-
Method Detail
-
values
public static ExceptionDataMapper.ExceptionData[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ExceptionDataMapper.ExceptionData c : ExceptionDataMapper.ExceptionData.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ExceptionDataMapper.ExceptionData valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getStatusCode
public org.springframework.http.HttpStatus getStatusCode()
-
getI18nKey
public String getI18nKey()
-
getServerSideExceptionInfoFromException
public ServerSideExceptionInfo getServerSideExceptionInfoFromException(Throwable exception)
-
-