java.lang.Object
java.lang.Throwable
java.lang.Exception
java.sql.SQLException
org.postgresql.pljava.TriggerException
- All Implemented Interfaces:
Serializable
,Iterable<Throwable>
An exception specially suited to be thrown from within a method
designated to be a trigger function. The message generated by
this exception will contain information on what trigger and
what relation it was that caused the exception
- Author:
- Thomas Hallgren
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCreate an exception based on theTriggerData
that was passed to the trigger method.TriggerException
(TriggerData td, String reason) Create an exception based on theTriggerData
that was passed to the trigger method and an additional message. -
Method Summary
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
-
Field Details
-
TRIGGER_ACTION_EXCEPTION
- See Also:
-
-
Constructor Details
-
TriggerException
Create an exception based on theTriggerData
that was passed to the trigger method.- Parameters:
td
- TheTriggerData
that was passed to the trigger method.
-
TriggerException
Create an exception based on theTriggerData
that was passed to the trigger method and an additional message.- Parameters:
td
- TheTriggerData
that was passed to the trigger method.reason
- An additional message with info about the exception.
-