DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | Properties | List of all members
Deveel.Data.Diagnostics.ErrorException Class Reference

The base class of all the exceptions handled by the system and that can be converted to events sent to the diagnostics. More...

Inheritance diagram for Deveel.Data.Diagnostics.ErrorException:
Deveel.Data.DatabaseSystemException Deveel.Data.Protocol.ProtocolException Deveel.Data.Security.SecurityException Deveel.Data.Sql.Expressions.SqlExpressionException Deveel.Data.Sql.Parser.SqlParseException Deveel.Data.Sql.SqlErrorException Deveel.Data.Store.DataStorageException Deveel.Data.Transactions.TransactionException

Public Member Functions

 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

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...
 

Detailed Description

The base class of all the exceptions handled by the system and that can be converted to events sent to the diagnostics.

Definition at line 24 of file ErrorException.cs.

Constructor & Destructor Documentation

Deveel.Data.Diagnostics.ErrorException.ErrorException ( int  errorCode)
inline

Definition at line 25 of file ErrorException.cs.

26  : this(errorCode, null) {
27  }
Deveel.Data.Diagnostics.ErrorException.ErrorException ( int  errorCode,
string  message 
)
inline

Definition at line 29 of file ErrorException.cs.

30  : this(errorCode, message, null) {
31  }
Deveel.Data.Diagnostics.ErrorException.ErrorException ( )
inline

Definition at line 33 of file ErrorException.cs.

34  : this(null) {
35  }
Deveel.Data.Diagnostics.ErrorException.ErrorException ( string  message)
inline

Definition at line 37 of file ErrorException.cs.

38  : this(message, null) {
39  }
Deveel.Data.Diagnostics.ErrorException.ErrorException ( string  message,
Exception  innerException 
)
inline

Definition at line 41 of file ErrorException.cs.

42  : this(SystemErrorCodes.Unknown, message, innerException) {
43  }
Deveel.Data.Diagnostics.ErrorException.ErrorException ( int  errorCode,
string  message,
Exception  innerException 
)
inline

Definition at line 45 of file ErrorException.cs.

46  : base(message, innerException) {
47  ErrorCode = errorCode;
48  }
int ErrorCode
Gets a numeric value representing the code of the error catched by this exception.

Member Function Documentation

ErrorEvent Deveel.Data.Diagnostics.ErrorException.AsEvent ( IEventSource  source)
inline

Transforms the error to an event to be passed to the diagnostics, given a source where this was generated.

Parameters
sourceThe source of the error.
Returns
Returns an instance of ErrorEvent that encapsulates all the information about this exception, that can be routed to the diagnostics.

Definition at line 72 of file ErrorException.cs.

72  {
73  var e = new ErrorEvent(this, ErrorCode, ErrorLevel);
74 
75  if (source != null)
76  e.EventSource = source;
77 
78  return e;
79  }
int ErrorCode
Gets a numeric value representing the code of the error catched by this exception.
virtual ErrorLevel ErrorLevel
Gets the error level of this exception.

Property Documentation

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

Gets a numeric value representing the code of the error catched by this exception.

Definition at line 54 of file ErrorException.cs.

virtual ErrorLevel Deveel.Data.Diagnostics.ErrorException.ErrorLevel
getprotected

Gets the error level of this exception.

Definition at line 59 of file ErrorException.cs.


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