Class DataOperationException<T>
Inheritance
Namespace: Umbraco.Cms.Core.Exceptions
Assembly: Umbraco.Core.dll
Syntax
public class DataOperationException<T> : Exception where T : Enum
Type Parameters
| Name | Description |
|---|---|
| T |
Constructors
View SourceDataOperationException()
Initializes a new instance of the DataOperationException<T> class.
Declaration
public DataOperationException()
DataOperationException(string)
Initializes a new instance of the DataOperationException<T> class.
Declaration
public DataOperationException(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The message that describes the error. |
DataOperationException(string, Exception)
Initializes a new instance of the DataOperationException<T> class.
Declaration
public DataOperationException(string message, Exception innerException)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The error message that explains the reason for the exception. |
| Exception | innerException | The exception that is the cause of the current exception, or a null reference (
|
DataOperationException(T)
Initializes a new instance of the DataOperationException<T> class.
Declaration
public DataOperationException(T operation)
Parameters
| Type | Name | Description |
|---|---|---|
| T | operation | The operation. |
DataOperationException(T, string)
Initializes a new instance of the DataOperationException<T> class.
Declaration
public DataOperationException(T operation, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| T | operation | The operation. |
| string | message | The message. |
Properties
View SourceOperation
Gets the operation.
Declaration
public T? Operation { get; }
Property Value
| Type | Description |
|---|---|
| T | The operation. |
Remarks
This object should be serializable to prevent a System.Runtime.Serialization.SerializationException to be thrown.