org.teiid.jdbc
Class TeiidSQLException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.sql.SQLException
              extended by org.teiid.jdbc.TeiidSQLException
All Implemented Interfaces:
java.io.Serializable, java.lang.Iterable<java.lang.Throwable>

public class TeiidSQLException
extends java.sql.SQLException

Teiid specific SQLException

See Also:
Serialized Form

Constructor Summary
TeiidSQLException()
          No-arg constructor required by Externalizable semantics.
TeiidSQLException(java.lang.String reason)
           
TeiidSQLException(java.lang.String reason, java.lang.String state)
           
TeiidSQLException(java.lang.Throwable ex, java.lang.String reason, java.lang.String sqlState)
           
 
Method Summary
static TeiidSQLException create(java.lang.Throwable exception)
           
static TeiidSQLException 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

TeiidSQLException

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


TeiidSQLException

public TeiidSQLException(java.lang.String reason)

TeiidSQLException

public TeiidSQLException(java.lang.String reason,
                         java.lang.String state)

TeiidSQLException

public TeiidSQLException(java.lang.Throwable ex,
                         java.lang.String reason,
                         java.lang.String sqlState)
Method Detail

create

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

create

public static TeiidSQLException 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()
Since:
4.3
See Also:
org.teiid.jdbc.api.SQLException#isSystemErrorState()

isUsageErrorState

public boolean isUsageErrorState()
Since:
4.3
See Also:
org.teiid.jdbc.api.SQLException#isUsageErrorState()


Copyright © 2010. All Rights Reserved.