Interface ExceptionSeverity
- All Known Subinterfaces:
ExceptionSeverity
public interface ExceptionSeverity
Severity constants for SQLExceptions.
These constants are used in the ErrorCode available on a SQLException
to provide information about the severity of the error.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
DATABASE_SEVERITY is associated with errors which cause the current database to be closed.static final int
NO_APPLICABLE_SEVERITY occurs only when the system was unable to determine the severity.static final int
SESSION_SEVERITY is associated with errors which cause the current connection to be closed.static final int
STATEMENT_SEVERITY is associated with errors which cause only the current statement to be aborted.static final int
SYSTEM_SEVERITY is associated with internal errors which cause the system to shut down.static final int
TRANSACTION_SEVERITY is associated with those errors which cause the current transaction to be aborted.static final int
WARNING_SEVERITY is associated with SQLWarnings.
-
Field Details
-
NO_APPLICABLE_SEVERITY
static final int NO_APPLICABLE_SEVERITYNO_APPLICABLE_SEVERITY occurs only when the system was unable to determine the severity.- See Also:
-
WARNING_SEVERITY
static final int WARNING_SEVERITYWARNING_SEVERITY is associated with SQLWarnings.- See Also:
-
STATEMENT_SEVERITY
static final int STATEMENT_SEVERITYSTATEMENT_SEVERITY is associated with errors which cause only the current statement to be aborted.- See Also:
-
TRANSACTION_SEVERITY
static final int TRANSACTION_SEVERITYTRANSACTION_SEVERITY is associated with those errors which cause the current transaction to be aborted.- See Also:
-
SESSION_SEVERITY
static final int SESSION_SEVERITYSESSION_SEVERITY is associated with errors which cause the current connection to be closed.- See Also:
-
DATABASE_SEVERITY
static final int DATABASE_SEVERITYDATABASE_SEVERITY is associated with errors which cause the current database to be closed.- See Also:
-
SYSTEM_SEVERITY
static final int SYSTEM_SEVERITYSYSTEM_SEVERITY is associated with internal errors which cause the system to shut down.- See Also:
-