com.metamatrix.jdbc
Class MMSQLException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.sql.SQLException
              extended by com.metamatrix.jdbc.MMSQLException
All Implemented Interfaces:
SQLException, java.io.Serializable, java.lang.Iterable<java.lang.Throwable>

public class MMSQLException
extends java.sql.SQLException
implements SQLException

All exceptions thrown by the MetaMatrix server are wrapped as MMSQLExceptions. If there are multiple exceptions, they can be represented as a chain of MMSQLExceptions. Thus a server side chain of exceptions map directly to a corresponding chain of MMSQLExceptions. This class reads in MetaMatrix exceptions, which are chained exceptions and constructs it's own chain of exceptions.

See Also:
Serialized Form

Constructor Summary
MMSQLException()
          No-arg constructor required by Externalizable semantics.
 
Method Summary
static MMSQLException create(java.lang.Throwable exception)
           
static MMSQLException create(java.lang.Throwable exception, java.lang.String message)
           
 java.lang.Throwable getCause()
           
 boolean isSystemErrorState()
           
 boolean isUsageErrorState()
           
 
Methods inherited from class java.sql.SQLException
getErrorCode, getNextException, getSQLState, iterator, setNextException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, 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

MMSQLException

public MMSQLException()
No-arg constructor required by Externalizable semantics.

Method Detail

create

public static MMSQLException create(java.lang.Throwable exception)

create

public static MMSQLException create(java.lang.Throwable exception,
                                    java.lang.String message)

getCause

public java.lang.Throwable getCause()
Overrides:
getCause in class java.lang.Throwable
Since:
4.3.2
See Also:
Throwable.getCause()

isSystemErrorState

public boolean isSystemErrorState()
Specified by:
isSystemErrorState in interface SQLException
Since:
4.3
See Also:
SQLException.isSystemErrorState()

isUsageErrorState

public boolean isUsageErrorState()
Specified by:
isUsageErrorState in interface SQLException
Since:
4.3
See Also:
SQLException.isUsageErrorState()


Copyright © 2009. All Rights Reserved.