Package de.businesscode.util.jdbc
Class SQLDetailException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.sql.SQLException
-
- de.businesscode.util.jdbc.SQLDetailException
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Iterable<java.lang.Throwable>
public class SQLDetailException extends java.sql.SQLException
An exception with SQL details, which may not be save to be included in the message to the client- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SQLDetailException(java.lang.String message, java.lang.String sql, java.sql.SQLException sqlException)
SQLDetailException(java.lang.String message, java.sql.SQLException sqlException)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getMessage()
-
Methods inherited from class java.sql.SQLException
getErrorCode, getNextException, getSQLState, iterator, setNextException
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
SQLDetailException
public SQLDetailException(java.lang.String message, java.sql.SQLException sqlException)
- Parameters:
message
- explaining what happenedsqlException
- root cause
-
SQLDetailException
public SQLDetailException(java.lang.String message, java.lang.String sql, java.sql.SQLException sqlException)
- Parameters:
message
- explaining what happenedsql
- which caused this exception, may be null if not availablesqlException
- root cause
-
-