public static enum ExceptionMapper.SqlStates extends Enum<ExceptionMapper.SqlStates>
Modifier and Type | Method and Description |
---|---|
static ExceptionMapper.SqlStates |
fromString(String group)
Get sqlState from group.
|
String |
getSqlState() |
static ExceptionMapper.SqlStates |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ExceptionMapper.SqlStates[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExceptionMapper.SqlStates WARNING
public static final ExceptionMapper.SqlStates NO_DATA
public static final ExceptionMapper.SqlStates CONNECTION_EXCEPTION
public static final ExceptionMapper.SqlStates FEATURE_NOT_SUPPORTED
public static final ExceptionMapper.SqlStates CARDINALITY_VIOLATION
public static final ExceptionMapper.SqlStates DATA_EXCEPTION
public static final ExceptionMapper.SqlStates CONSTRAINT_VIOLATION
public static final ExceptionMapper.SqlStates INVALID_CURSOR_STATE
public static final ExceptionMapper.SqlStates INVALID_TRANSACTION_STATE
public static final ExceptionMapper.SqlStates INVALID_AUTHORIZATION
public static final ExceptionMapper.SqlStates SQL_FUNCTION_EXCEPTION
public static final ExceptionMapper.SqlStates TRANSACTION_ROLLBACK
public static final ExceptionMapper.SqlStates SYNTAX_ERROR_ACCESS_RULE
public static final ExceptionMapper.SqlStates INVALID_CATALOG
public static final ExceptionMapper.SqlStates INTERRUPTED_EXCEPTION
public static final ExceptionMapper.SqlStates UNDEFINED_SQLSTATE
public static final ExceptionMapper.SqlStates TIMEOUT_EXCEPTION
public static final ExceptionMapper.SqlStates DISTRIBUTED_TRANSACTION_ERROR
public static ExceptionMapper.SqlStates[] values()
for (ExceptionMapper.SqlStates c : ExceptionMapper.SqlStates.values()) System.out.println(c);
public static ExceptionMapper.SqlStates 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 static ExceptionMapper.SqlStates fromString(String group)
group
- grouppublic String getSqlState()
Copyright © 2016. All rights reserved.