DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | Properties | Static Private Member Functions | List of all members
Deveel.Data.Sql.Triggers.TriggerException Class Reference
Inheritance diagram for Deveel.Data.Sql.Triggers.TriggerException:
Deveel.Data.Sql.SqlErrorException Deveel.Data.Diagnostics.ErrorException

Public Member Functions

 TriggerException (Trigger trigger, Exception innerException)
 
 TriggerException (Trigger trigger, string message, Exception innerException)
 
 TriggerException (Trigger trigger)
 
 TriggerException (Trigger trigger, string message)
 
- Public Member Functions inherited from Deveel.Data.Sql.SqlErrorException
 SqlErrorException (int errorCode)
 
 SqlErrorException (int errorCode, string message)
 
 SqlErrorException (int errorCode, string message, Exception innerException)
 
- Public Member Functions inherited from Deveel.Data.Diagnostics.ErrorException
 ErrorException (int errorCode)
 
 ErrorException (int errorCode, string message)
 
 ErrorException ()
 
 ErrorException (string message)
 
 ErrorException (string message, Exception innerException)
 
 ErrorException (int errorCode, string message, Exception innerException)
 
ErrorEvent AsEvent (IEventSource source)
 Transforms the error to an event to be passed to the diagnostics, given a source where this was generated. More...
 

Properties

ObjectName TableName [get, private set]
 
ObjectName TriggerName [get, private set]
 
TriggerEventType EventType [get, private set]
 
- Properties inherited from Deveel.Data.Diagnostics.ErrorException
int ErrorCode [get, private set]
 Gets a numeric value representing the code of the error catched by this exception. More...
 
virtual ErrorLevel ErrorLevel [get]
 Gets the error level of this exception. More...
 

Static Private Member Functions

static string FormMessage (Trigger trigger)
 
static string FormMessage (ObjectName tableName, ObjectName triggerName, TriggerEventType eventType)
 

Detailed Description

Definition at line 20 of file TriggerException.cs.

Constructor & Destructor Documentation

Deveel.Data.Sql.Triggers.TriggerException.TriggerException ( Trigger  trigger,
Exception  innerException 
)
inline

Definition at line 21 of file TriggerException.cs.

22  : this(trigger, FormMessage(trigger), innerException) {
23  }
static string FormMessage(Trigger trigger)
Deveel.Data.Sql.Triggers.TriggerException.TriggerException ( Trigger  trigger,
string  message,
Exception  innerException 
)
inline

Definition at line 25 of file TriggerException.cs.

26  : base(-1, message, innerException) {
27  TableName = trigger.TriggerInfo.TableName;
28  TriggerName = trigger.TriggerName;
29  EventType = trigger.TriggerInfo.EventType;
30  }
Deveel.Data.Sql.Triggers.TriggerException.TriggerException ( Trigger  trigger)
inline

Definition at line 32 of file TriggerException.cs.

33  : this(trigger, FormMessage(trigger)) {
34  }
static string FormMessage(Trigger trigger)
Deveel.Data.Sql.Triggers.TriggerException.TriggerException ( Trigger  trigger,
string  message 
)
inline

Definition at line 36 of file TriggerException.cs.

37  : this(trigger, message, null) {
38  }

Member Function Documentation

static string Deveel.Data.Sql.Triggers.TriggerException.FormMessage ( Trigger  trigger)
inlinestaticprivate

Definition at line 46 of file TriggerException.cs.

46  {
47  return FormMessage(trigger.TriggerInfo.TableName, trigger.TriggerName, trigger.TriggerInfo.EventType);
48  }
static string FormMessage(Trigger trigger)
static string Deveel.Data.Sql.Triggers.TriggerException.FormMessage ( ObjectName  tableName,
ObjectName  triggerName,
TriggerEventType  eventType 
)
inlinestaticprivate

Definition at line 50 of file TriggerException.cs.

50  {
51  return String.Format("An error occurred when firing trigger '{0}' on table '{1}' on {2}",
52  triggerName, tableName, eventType.AsString());
53  }
A long string in the system.

Property Documentation

TriggerEventType Deveel.Data.Sql.Triggers.TriggerException.EventType
getprivate set

Definition at line 44 of file TriggerException.cs.

ObjectName Deveel.Data.Sql.Triggers.TriggerException.TableName
getprivate set

Definition at line 40 of file TriggerException.cs.

ObjectName Deveel.Data.Sql.Triggers.TriggerException.TriggerName
getprivate set

Definition at line 42 of file TriggerException.cs.


The documentation for this class was generated from the following file: