Package com.tableau.hyperapi
Class HyperException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.tableau.hyperapi.HyperException
- All Implemented Interfaces:
Serializable
Defines a
RuntimeException
object that is thrown on failure by the functions in the Hyper API Java
library. HyperException
is an unchecked exception.- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetCause()
Returns the cause of the exception (if any).Returns the context id.Deprecated.Use getMainMessage() instead.getHint()
Returns the hint message that was stored in the exception object.Returns the message that was stored in the exception object.Returns a detailed message string of this throwable.EXPERIMENTALMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
getCause
Returns the cause of the exception (if any). -
getMainMessage
Returns the message that was stored in the exception object.Note that error messages may change in the future versions of the library.
- Returns:
- The message.
-
getErrorMessage
Deprecated.Use getMainMessage() instead. This function will be removed in the future.Returns the message that was stored in the exception object.Note that error messages may change in the future versions of the library.
- Returns:
- The message.
-
getHint
Returns the hint message that was stored in the exception object.- Returns:
- The hint message.
-
getMessage
Returns a detailed message string of this throwable.This string contains message, hint and the context id of the error and of all of its causes.
- Overrides:
getMessage
in classThrowable
- Returns:
- The detailed message.
-
getContextId
Returns the context id.- Returns:
- the context id.
-
getSqlState
EXPERIMENTALReturn the SQL state associated with the error.
- Returns:
- The SQL state
-