Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
TransactionException.cs
1using System;
2using Waher.Events;
3
5{
9 public class TransactionException : Exception, IEventObject
10 {
11 private readonly ITransaction transaction;
12
19 : base(Message)
20 {
21 this.transaction = Transaction;
22 }
23
30 public TransactionException(ITransaction Transaction, string Message, Exception InnerException)
31 : base(Message, InnerException)
32 {
33 this.transaction = Transaction;
34 }
35
39 public ITransaction Transaction => this.transaction;
40
44 public string Object => this.transaction.Id.ToString();
45 }
46}
Exception object for transaction exceptions.
string Object
Object identifier related to the object.
TransactionException(ITransaction Transaction, string Message, Exception InnerException)
Exception object for transaction exceptions.
ITransaction Transaction
Reference to transaction object.
TransactionException(ITransaction Transaction, string Message)
Exception object for transaction exceptions.
Abstract base class for transactions.
Definition: Transaction.cs:17
Implement this interface on exception classes to allow the log to extract object information in corre...
Definition: IEventObject.cs:8
Interface for transactions
Definition: ITransaction.cs:10