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;
2using System.Collections.Generic;
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 }
49 public GenericException(string Message, 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(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
67 public string Actor { get; }
68
72 public string Facility { get; }
73
77 public string EventId { get; }
78
82 public EventLevel? Level { get; }
83
87 public string Module { get; }
88
92 public string Object { get; }
93
97 public KeyValuePair<string, object>[] Tags { get; }
98
102 public EventType? Type { get; }
103 }
104}
Generic exception, with meta-data for logging.
EventLevel? Level
Event level.
KeyValuePair< string, object >[] Tags
Tags related to the object.
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