Class AvaticaRuntimeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.calcite.avatica.remote.AvaticaRuntimeException
- All Implemented Interfaces:
Serializable
A
RuntimeException thrown by Avatica with additional contextual information about
what happened to cause the Exception.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs anAvaticaRuntimeExceptionwith no additional information.AvaticaRuntimeException(String errorMessage, int errorCode, String sqlState, AvaticaSeverity severity) Constructs anAvaticaRuntimeExceptionwith the given contextual information surrounding the error. -
Method Summary
Modifier and TypeMethodDescriptionintReturns a numeric code for this error.Returns a human-readable error message.Returns the severity at which this exception is thrown.Returns the five-character identifier for this error.toString()Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
AvaticaRuntimeException
public AvaticaRuntimeException()Constructs anAvaticaRuntimeExceptionwith no additional information.It is strongly preferred that the caller invoke
AvaticaRuntimeException(String, int, String, AvaticaSeverity)with proper contextual information. -
AvaticaRuntimeException
public AvaticaRuntimeException(String errorMessage, int errorCode, String sqlState, AvaticaSeverity severity) Constructs anAvaticaRuntimeExceptionwith the given contextual information surrounding the error.- Parameters:
errorMessage- A human-readable explanation about what happenederrorCode- Numeric identifier for errorsqlState- 5-character identifier for errorseverity- Severity
-
-
Method Details
-
getErrorMessage
Returns a human-readable error message. -
getErrorCode
public int getErrorCode()Returns a numeric code for this error. -
getSqlState
Returns the five-character identifier for this error. -
getSeverity
Returns the severity at which this exception is thrown. -
toString
-