Class AceQLException

All Implemented Interfaces:
Serializable, Iterable<Throwable>

public class AceQLException
extends SQLException
Wrapper class for Exceptions thrown on client side or server side.
Author:
Nicolas de Pomereu
See Also:
Serialized Form
  • Constructor Details

    • AceQLException

      public AceQLException​(String reason, int vendorCode, Throwable cause, String remoteStackTrace, int httpStatusCode)
      Builds an AceQLException that wraps/traps an Exception.
      Parameters:
      reason - the error message
      vendorCode - The error type:
      • 0 for local Exception.
      • 1 for JDBC Driver Exception on the server.
      • 2 for AceQL Exception on the server.
      • 3 for AceQL Security Exception on the server.
      • 4 for AceQL failure.
      cause - the wrapped/trapped Exception
      remoteStackTrace - the stack trace in case for remote Exception
      httpStatusCode - the http status code
  • Method Details

    • getHttpStatusCode

      public int getHttpStatusCode()
      Returns the http status code associated to the Exception
      Returns:
      the http status code associated to the Exception
    • getRemoteStackTrace

      public String getRemoteStackTrace()
      Returns the stack trace of the Exception thrown on server side
      Returns:
      the stack trace of the Exception thrown on server side
    • toString

      public String toString()
      Overrides:
      toString in class Throwable