org.postgresql.pljava
Class TriggerException
SQLException
org.postgresql.pljava.TriggerException
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
TriggerException(TriggerData td) - Create an exception based on the
TriggerData that was
passed to the trigger method.
|
TriggerException(TriggerData td, String reason) - Create an exception based on the
TriggerData that was
passed to the trigger method and an additional message.
|
TRIGGER_ACTION_EXCEPTION
public static final String TRIGGER_ACTION_EXCEPTION
TriggerException
public TriggerException(TriggerData td)
Create an exception based on the TriggerData
that was
passed to the trigger method.
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.
td
- The TriggerData
that was passed to the trigger
method.reason
- An additional message with info about the exception.
Copyright (c) 2003, 2004, 2005 TADA AB - Taby Sweden. \
Distributed under the terms shown in COPYRIGHT