Class AvaticaRuntimeException

  • All Implemented Interfaces:
    java.io.Serializable

    public class AvaticaRuntimeException
    extends java.lang.RuntimeException
    A RuntimeException thrown by Avatica with additional contextual information about what happened to cause the Exception.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      AvaticaRuntimeException()
      Constructs an AvaticaRuntimeException with no additional information.
      AvaticaRuntimeException​(java.lang.String errorMessage, int errorCode, java.lang.String sqlState, AvaticaSeverity severity)
      Constructs an AvaticaRuntimeException with the given contextual information surrounding the error.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getErrorCode()
      Returns a numeric code for this error.
      java.lang.String getErrorMessage()
      Returns a human-readable error message.
      AvaticaSeverity getSeverity()
      Returns the severity at which this exception is thrown.
      java.lang.String getSqlState()
      Returns the five-character identifier for this error.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • errorMessage

        private final java.lang.String errorMessage
      • errorCode

        private final int errorCode
      • sqlState

        private final java.lang.String sqlState
    • Constructor Detail

      • AvaticaRuntimeException

        public AvaticaRuntimeException​(java.lang.String errorMessage,
                                       int errorCode,
                                       java.lang.String sqlState,
                                       AvaticaSeverity severity)
        Constructs an AvaticaRuntimeException with the given contextual information surrounding the error.
        Parameters:
        errorMessage - A human-readable explanation about what happened
        errorCode - Numeric identifier for error
        sqlState - 5-character identifier for error
        severity - Severity
    • Method Detail

      • getErrorMessage

        public java.lang.String getErrorMessage()
        Returns a human-readable error message.
      • getErrorCode

        public int getErrorCode()
        Returns a numeric code for this error.
      • getSqlState

        public java.lang.String getSqlState()
        Returns the five-character identifier for this error.
      • getSeverity

        public AvaticaSeverity getSeverity()
        Returns the severity at which this exception is thrown.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Throwable