Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
CollectionException.cs
1using System;
2using System.Collections.Generic;
3using System.IO;
4using Waher.Events;
5
7{
12 {
13 private readonly string collection;
14
20 public CollectionException(string Message, string Collection)
21 : base(Message)
22 {
23 this.collection = Collection;
24 }
25
29 public string Collection => this.collection;
30
34 public KeyValuePair<string, object>[] Tags
35 {
36 get
37 {
38 if (string.IsNullOrEmpty(this.collection))
39 return new KeyValuePair<string, object>[0];
40 else
41 {
42 return new KeyValuePair<string, object>[]
43 {
44 new KeyValuePair<string, object>("Collection", this.collection)
45 };
46 }
47 }
48 }
49 }
50}
CollectionException(string Message, string Collection)
Exception related to a collection.
KeyValuePair< string, object >[] Tags
Tags related to the object.
Base class for database exceptions.
Implement this interface on exception classes to allow the log to extract tags in corresponding event...
Definition: IEventTags.cs:10