public final class HyperException
extends java.lang.RuntimeException
RuntimeException
object that is thrown on failure by the functions in the Hyper API Java
library. HyperException
is an unchecked exception.Modifier and Type | Class and Description |
---|---|
static class |
HyperException.ContextId
A context id.
|
Modifier and Type | Method and Description |
---|---|
HyperException |
getCause()
Returns the cause of the exception (if any).
|
HyperException.ContextId |
getContextId()
Returns the context id.
|
java.lang.String |
getErrorMessage()
Deprecated.
Use getMainMessage() instead. This function will be removed in the future.
|
java.lang.String |
getHint()
Returns the hint message that was stored in the exception object.
|
java.lang.String |
getMainMessage()
Returns the message that was stored in the exception object.
|
java.lang.String |
getMessage()
Returns a detailed message string of this throwable.
|
java.lang.String |
getSqlState()
EXPERIMENTAL
|
public HyperException getCause()
getCause
in class java.lang.Throwable
public java.lang.String getMainMessage()
Note that error messages may change in the future versions of the library.
@Deprecated public java.lang.String getErrorMessage()
Note that error messages may change in the future versions of the library.
public java.lang.String getHint()
public java.lang.String getMessage()
This string contains message, hint and the context id of the error and of all of its causes.
getMessage
in class java.lang.Throwable
public HyperException.ContextId getContextId()
public java.lang.String getSqlState()
Return the SQL state associated with the error.