Ontimize 5.2072EN

com.ontimize.db.sql
Class SQLStatementException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.ontimize.db.sql.SQLStatementException
All Implemented Interfaces:
java.io.Serializable

public class SQLStatementException
extends java.lang.Exception

See Also:
Serialized Form

Field Summary
protected  java.lang.String statement
          String that contains a SQL Statement.
 
Constructor Summary
SQLStatementException(java.sql.SQLException t, java.lang.String statement)
          Constructs a new SQLStatementException adding to the SQLException the SQL Statement that has caused the exception.
 
Method Summary
 java.lang.String getSQLStatement()
          Returns the SQL Statement
 
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
 

Field Detail

statement

protected java.lang.String statement
String that contains a SQL Statement.

Constructor Detail

SQLStatementException

public SQLStatementException(java.sql.SQLException t,
                             java.lang.String statement)
Constructs a new SQLStatementException adding to the SQLException the SQL Statement that has caused the exception.

Parameters:
t - The SQLException.
statement - String with the SQL Statement.
Method Detail

getSQLStatement

public java.lang.String getSQLStatement()
Returns the SQL Statement

Returns:
a String with the SQL Statement.

Ontimize