org.drizzle.jdbc.internal.common
Class QueryException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.drizzle.jdbc.internal.common.QueryException
All Implemented Interfaces:
java.io.Serializable

public class QueryException
extends java.lang.Exception

. User: marcuse Date: Feb 7, 2009 Time: 10:16:17 PM

See Also:
Serialized Form

Constructor Summary
QueryException(java.lang.String message)
          Creates a default query exception with errorCode -1 and sqlState HY0000.
QueryException(java.lang.String message, int errorCode, java.lang.String sqlState, java.lang.Throwable cause)
          creates a query exception with a message and a cause.
QueryException(java.lang.String message, short errorCode, java.lang.String sqlState)
          Creates a query exception with a message.
 
Method Summary
 int getErrorCode()
          returns the error code.
 java.lang.String getSqlState()
          gets the sql state.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QueryException

public QueryException(java.lang.String message)
Creates a default query exception with errorCode -1 and sqlState HY0000.

Parameters:
message - the message to set

QueryException

public QueryException(java.lang.String message,
                      short errorCode,
                      java.lang.String sqlState)
Creates a query exception with a message.

Parameters:
message - the message
errorCode - the error code
sqlState - the sqlstate

QueryException

public QueryException(java.lang.String message,
                      int errorCode,
                      java.lang.String sqlState,
                      java.lang.Throwable cause)
creates a query exception with a message and a cause.

Parameters:
message - the exception message
errorCode - the error code
sqlState - the sql state
cause - the cause of the exception
Method Detail

getErrorCode

public final int getErrorCode()
returns the error code.

Returns:
the error code

getSqlState

public final java.lang.String getSqlState()
gets the sql state.

Returns:
the sql state


Copyright © 2012. All Rights Reserved.