Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
GenericException.cs
1using System;
3
4namespace Waher.Events
5{
10 {
23 public GenericException(string Message, EventType? Type = null, string Object = null, string Actor = null, string EventId = null,
24 EventLevel? Level = null, string Facility = null, string Module = null, params KeyValuePair<string, object>[] Tags)
25 : base(Message)
26 {
27 this.Type = Type;
28 this.Object = Object;
29 this.Actor = Actor;
30 this.EventId = EventId;
31 this.Level = Level;
32 this.Facility = Facility;
33 this.Module = Module;
34 this.Tags = Tags;
35 }
36
49 public GenericException(Exception InnerException, EventType? Type = null, string Object = null,
50 string Actor = null, string EventId = null, EventLevel? Level = null, string Facility = null, string Module = null,
51 params KeyValuePair<string, object>[] Tags)
52 : base(InnerException.Message, InnerException)
53 {
54 this.Type = Type;
55 this.Object = Object;
56 this.Actor = Actor;
57 this.EventId = EventId;
58 this.Level = Level;
59 this.Facility = Facility;
60 this.Module = Module;
61 this.Tags = Tags;
62 }
63
77 public GenericException(string Message, Exception InnerException, EventType? Type = null, string Object = null,
78 string Actor = null, string EventId = null, EventLevel? Level = null, string Facility = null, string Module = null,
79 params KeyValuePair<string, object>[] Tags)
80 : base(Message, InnerException)
81 {
82 this.Type = Type;
83 this.Object = Object;
84 this.Actor = Actor;
85 this.EventId = EventId;
86 this.Level = Level;
87 this.Facility = Facility;
88 this.Module = Module;
89 this.Tags = Tags;
90 }
91
95 public string Actor { get; }
96
100 public string Facility { get; }
101
105 public string EventId { get; }
106
110 public EventLevel? Level { get; }
111
115 public string Module { get; }
116
120 public string Object { get; }
121
125 public KeyValuePair<string, object>[] Tags { get; }
126
130 public EventType? Type { get; }
131 }
132}
Generic exception, with meta-data for logging.
EventLevel? Level
Event level.
KeyValuePair< string, object >[] Tags
Tags related to the object.
GenericException(Exception InnerException, EventType? Type=null, string Object=null, string Actor=null, string EventId=null, EventLevel? Level=null, string Facility=null, string Module=null, params KeyValuePair< string, object >[] Tags)
Generic exception, with meta-data for logging.
EventType? Type
Event type.
string Facility
Facility identifier related to the object.
string EventId
Event identifier related to the object.
GenericException(string Message, EventType? Type=null, string Object=null, string Actor=null, string EventId=null, EventLevel? Level=null, string Facility=null, string Module=null, params KeyValuePair< string, object >[] Tags)
Generic exception, with meta-data for logging.
string Actor
Actor identifier related to the object.
string Module
Module identifier related to the object.
string Object
Object identifier related to the object.
GenericException(string Message, Exception InnerException, EventType? Type=null, string Object=null, string Actor=null, string EventId=null, EventLevel? Level=null, string Facility=null, string Module=null, params KeyValuePair< string, object >[] Tags)
Generic exception, with meta-data for logging.
Implement this interface on exception classes to allow the log to extract actor information in corres...
Definition: IEventActor.cs:8
Implement this interface on exception classes to allow the log to extract facility information in cor...
Implement this interface on exception classes to allow the log to extract Event ID information in cor...
Definition: IEventId.cs:8
Implement this interface on exception classes to allow the log to extract Event Level information in ...
Definition: IEventLevel.cs:8
Implement this interface on exception classes to allow the log to extract module information in corre...
Definition: IEventModule.cs:8
Implement this interface on exception classes to allow the log to extract object information in corre...
Definition: IEventObject.cs:8
Implement this interface on exception classes to allow the log to extract tags in corresponding event...
Definition: IEventTags.cs:10
Implement this interface on exception classes to allow the log to extract Event Type information in c...
Definition: IEventType.cs:8
EventLevel
Event level.
Definition: EventLevel.cs:7
EventType
Type of event.
Definition: EventType.cs:7