Class OperationException
Exception for signaling operation errors.
Inheritance
System.Object
System.Exception
OperationException
Inherited Members
System.Exception.GetBaseException()
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Exception.GetType()
System.Exception.Data
System.Exception.HelpLink
System.Exception.HResult
System.Exception.InnerException
System.Exception.Message
System.Exception.Source
System.Exception.StackTrace
System.Exception.TargetSite
System.Exception.SerializeObjectState
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Kephas.Operations
Assembly: Kephas.Core.dll
Syntax
public class OperationException : Exception, ISerializable, ISeverityQualifiedException
Constructors
| Improve this Doc View SourceOperationException(String)
Initializes a new instance of the OperationException class.
Declaration
public OperationException(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message. |
OperationException(String, Exception)
Initializes a new instance of the OperationException class.
Declaration
public OperationException(string message, Exception inner)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message. |
System.Exception | inner | The inner. |
Properties
| Improve this Doc View SourceSeverity
Gets or sets the severity.
Declaration
public SeverityLevel Severity { get; set; }
Property Value
Type | Description |
---|---|
SeverityLevel | The severity. |
Timestamp
Gets the timestamp.
Declaration
public DateTimeOffset Timestamp { get; }
Property Value
Type | Description |
---|---|
System.DateTimeOffset | The timestamp. |
Methods
| Improve this Doc View SourceToString()
Creates and returns a string representation of the current exception.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A string representation of the current exception. |
Overrides
System.Exception.ToString()
Implements
System.Runtime.Serialization.ISerializable