Class AvaticaClientRuntimeException

  • All Implemented Interfaces:
    java.io.Serializable

    public class AvaticaClientRuntimeException
    extends java.lang.RuntimeException
    The client-side representation of AvaticaRuntimeException. This exception is not intended for consumption by clients, AvaticaSqlException serves that purpose. This exception only exists to pass the original error attributes to a higher level of execution without modifying existing exception-handling logic.
    See Also:
    Serialized Form
    • Field Detail

      • errorCode

        private final int errorCode
      • sqlState

        private final java.lang.String sqlState
      • serverExceptions

        private final java.util.List<java.lang.String> serverExceptions
    • Constructor Detail

      • AvaticaClientRuntimeException

        public AvaticaClientRuntimeException​(java.lang.String errorMessage,
                                             int errorCode,
                                             java.lang.String sqlState,
                                             AvaticaSeverity severity,
                                             java.util.List<java.lang.String> serverExceptions,
                                             Service.RpcMetadataResponse metadata)
      • AvaticaClientRuntimeException

        public AvaticaClientRuntimeException​(java.lang.String message,
                                             java.lang.Throwable cause)
    • Method Detail

      • getErrorCode

        public int getErrorCode()
      • getSqlState

        public java.lang.String getSqlState()
      • getServerExceptions

        public java.util.List<java.lang.String> getServerExceptions()
      • toString

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