Package com.aceql.jdbc.commons
Class AceQLException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.sql.SQLException
com.aceql.jdbc.commons.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 Summary
Constructors Constructor Description AceQLException(String reason, int vendorCode, Throwable cause, String remoteStackTrace, int httpStatusCode)Builds an AceQLException that wraps/traps an Exception. -
Method Summary
Modifier and Type Method Description intgetHttpStatusCode()Returns the http status code associated to the ExceptionStringgetRemoteStackTrace()Returns the stack trace of the Exception thrown on server sideStringtoString()Methods inherited from class java.sql.SQLException
getErrorCode, getNextException, getSQLState, iterator, setNextExceptionMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTraceMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
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 messagevendorCode- 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 ExceptionremoteStackTrace- the stack trace in case for remote ExceptionhttpStatusCode- 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
Returns the stack trace of the Exception thrown on server side- Returns:
- the stack trace of the Exception thrown on server side
-
toString
-