org.postgresql.pljava
Class TriggerException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.sql.SQLException
org.postgresql.pljava.TriggerException
- All Implemented Interfaces:
- Serializable
public class TriggerException
- extends SQLException
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:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
TRIGGER_ACTION_EXCEPTION
public static final String TRIGGER_ACTION_EXCEPTION
- See Also:
- Constant Field Values
TriggerException
public TriggerException(TriggerData td)
- Create an exception based on the
TriggerData
that was
passed to the trigger method.
- Parameters:
td
- The TriggerData
that was passed to the trigger
method.
TriggerException
public TriggerException(TriggerData td,
String reason)
- Create an exception based on the
TriggerData
that was
passed to the trigger method and an additional message.
- Parameters:
td
- The TriggerData
that was passed to the trigger
method.reason
- An additional message with info about the exception.