java.lang.Object
java.lang.Throwable
java.lang.Exception
java.sql.SQLException
com.aoapps.dao.ReasonsSQLException
- All Implemented Interfaces:
Serializable
,Iterable<Throwable>
A SQL exception with attached human-readable reasons.
- See Also:
-
Constructor Summary
ConstructorDescriptionReasonsSQLException
(String message, String sqlState, List<? extends Reason> reasons) Creates a new exception.ReasonsSQLException
(String message, List<? extends Reason> reasons) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionGets the reasons for the exception.Methods inherited from class java.sql.SQLException
getErrorCode, getNextException, getSQLState, iterator, setNextException
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ReasonsSQLException
@Deprecated(forRemoval=false) public ReasonsSQLException(String message, List<? extends Reason> reasons) Deprecated.Please provide SQLSTATE toReasonsSQLException(java.lang.String, java.lang.String, java.util.List)
Creates a new exception.- Parameters:
reasons
- No defensive copy is made
-
ReasonsSQLException
Creates a new exception.- Parameters:
reasons
- No defensive copy is made
-
-
Method Details
-
getReasons
Gets the reasons for the exception.- Returns:
- No defensive copy is made
-
ReasonsSQLException(java.lang.String, java.lang.String, java.util.List)