public class ExceptionUtil
extends java.lang.Object
Constructor | Description |
---|---|
ExceptionUtil() |
Modifier and Type | Method | Description |
---|---|---|
static java.lang.String |
dumpThreads() |
Dumps stack traces for all the threads if the JVM supports it.
|
static int |
getSeverityFromIdentifier(java.lang.String messageID) |
Get the severity given a message identifier from
SQLState . |
static java.lang.String |
getSQLStateFromIdentifier(java.lang.String messageID) |
Convert a message identifier from
org.apache.derby.shared.common.reference.SQLState to
a SQLState five character string.
|
static boolean |
isDeferredConstraintViolation(java.lang.String e) |
Determine if the given
SQLState string constant is a deferred
constraint transactional error. |
public static java.lang.String getSQLStateFromIdentifier(java.lang.String messageID)
messageID
- - the sql state id of the message from Derbypublic static int getSeverityFromIdentifier(java.lang.String messageID)
SQLState
.messageID
- the string carrying the SQL stateExceptionSeverity
.public static java.lang.String dumpThreads()
public static boolean isDeferredConstraintViolation(java.lang.String e)
SQLState
string constant is a deferred
constraint transactional error. If this is so, return true
, else
return false
.e
- the string with the SQL stateApache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.