Package org.apache.torque
Class TorqueException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.sql.SQLException
org.apache.torque.TorqueException
- All Implemented Interfaces:
Serializable,Iterable<Throwable>
- Direct Known Subclasses:
ConstraintViolationException,DeadlockException,NoRowsException,OptimisticLockingFailedException,TooManyRowsException
The base class of all checked exceptions thrown by Torque.
- Version:
- $Id: TorqueException.java 1839304 2018-08-27 12:19:46Z tv $
- Author:
- Daniel Rall, Jason van Zyl
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newTorqueExceptionwithout specified detail message.TorqueException(String msg) Constructs a newTorqueExceptionwith specified detail message.TorqueException(String msg, Throwable nested) Constructs a newTorqueExceptionwith specified detail message and nestedThrowable.TorqueException(Throwable nested) Constructs a newTorqueExceptionwith specified nestedThrowable. -
Method Summary
Methods inherited from class java.sql.SQLException
getErrorCode, getNextException, getSQLState, iterator, setNextExceptionMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
TorqueException
public TorqueException()Constructs a newTorqueExceptionwithout specified detail message. -
TorqueException
Constructs a newTorqueExceptionwith specified detail message.- Parameters:
msg- the error message.
-
TorqueException
Constructs a newTorqueExceptionwith specified nestedThrowable.- Parameters:
nested- the exception or error that caused this exception to be thrown.
-
TorqueException
Constructs a newTorqueExceptionwith specified detail message and nestedThrowable.- Parameters:
msg- the error message.nested- the exception or error that caused this exception to be thrown.
-