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:
java.io.Serializable
public final class HyperException extends java.lang.RuntimeExceptionDefines aRuntimeExceptionobject that is thrown on failure by the functions in the Hyper API Java library.HyperExceptionis an unchecked exception.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHyperException.ContextIdA context id.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description HyperExceptiongetCause()Returns the cause of the exception (if any).HyperException.ContextIdgetContextId()Returns the context id.java.lang.StringgetErrorMessage()Deprecated.Use getMainMessage() instead.java.lang.StringgetHint()Returns the hint message that was stored in the exception object.java.lang.StringgetMainMessage()Returns the message that was stored in the exception object.java.lang.StringgetMessage()Returns a detailed message string of this throwable.java.lang.StringgetSqlState()EXPERIMENTAL
-
-
-
Method Detail
-
getCause
public HyperException getCause()
Returns the cause of the exception (if any).- Overrides:
getCausein classjava.lang.Throwable- Returns:
- The cause, `null` if no cause.
-
getMainMessage
public java.lang.String 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 public java.lang.String 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
public java.lang.String getHint()
Returns the hint message that was stored in the exception object.- Returns:
- The hint message.
-
getMessage
public java.lang.String 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:
getMessagein classjava.lang.Throwable- Returns:
- The detailed message.
-
getContextId
public HyperException.ContextId getContextId()
Returns the context id.- Returns:
- the context id.
-
getSqlState
public java.lang.String getSqlState()
EXPERIMENTALReturn the SQL state associated with the error.
- Returns:
- The SQL state
-
-