DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | Protected Member Functions | Properties | List of all members
Deveel.Data.Diagnostics.ErrorEvent Class Reference
Inheritance diagram for Deveel.Data.Diagnostics.ErrorEvent:
Deveel.Data.Diagnostics.Event Deveel.Data.Diagnostics.IEvent

Public Member Functions

 ErrorEvent (Exception error, int errorCode, ErrorLevel level)
 

Protected Member Functions

override void GetEventData (Dictionary< string, object > data)
 
- Protected Member Functions inherited from Deveel.Data.Diagnostics.Event
 Event ()
 
 Event (DateTimeOffset timeStamp)
 
virtual IEventSource OnSourceGet (IEventSource eventSource)
 
virtual IEventSource OnSourceSet (IEventSource eventSource)
 

Properties

Exception Error [get, private set]
 
int ErrorCode [get, private set]
 
ErrorLevel Level [get, private set]
 
- Properties inherited from Deveel.Data.Diagnostics.Event
IEventSource EventSource [get, set]
 
DateTimeOffset TimeStamp [get, private set]
 
IDictionary< string, object > IEvent. EventData [get]
 
- Properties inherited from Deveel.Data.Diagnostics.IEvent
IEventSource EventSource [get, set]
 Gets the event source. More...
 
DateTimeOffset TimeStamp [get]
 
IDictionary< string, object > EventData [get]
 Gets additional event data that come with the event. More...
 

Detailed Description

Definition at line 21 of file ErrorEvent.cs.

Constructor & Destructor Documentation

Deveel.Data.Diagnostics.ErrorEvent.ErrorEvent ( Exception  error,
int  errorCode,
ErrorLevel  level 
)
inline

Definition at line 22 of file ErrorEvent.cs.

22  {
23  if (error == null)
24  throw new ArgumentNullException("error");
25 
26  Error = error;
27  ErrorCode = errorCode;
28  Level = level;
29  }

Member Function Documentation

override void Deveel.Data.Diagnostics.ErrorEvent.GetEventData ( Dictionary< string, object >  data)
inlineprotectedvirtual

Reimplemented from Deveel.Data.Diagnostics.Event.

Definition at line 37 of file ErrorEvent.cs.

37  {
38  data["error.code"] = ErrorCode;
39  data["error.level"] = Level.ToString().ToLowerInvariant();
40  data["error.message"] = Error.Message;
41  data["error.stackTrace"] = Error.StackTrace;
42  }

Property Documentation

Exception Deveel.Data.Diagnostics.ErrorEvent.Error
getprivate set

Definition at line 31 of file ErrorEvent.cs.

int Deveel.Data.Diagnostics.ErrorEvent.ErrorCode
getprivate set

Definition at line 33 of file ErrorEvent.cs.

ErrorLevel Deveel.Data.Diagnostics.ErrorEvent.Level
getprivate set

Definition at line 35 of file ErrorEvent.cs.


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