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(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. |
System.String | message | The message. |
DataOperationException(SerializationInfo, StreamingContext)
Initializes a new instance of the DataOperationException<T> class.
Declaration
protected DataOperationException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown. |
System.Runtime.Serialization.StreamingContext | context | The System.Runtime.Serialization.StreamingContext that contains contextual information about the source or destination. |
DataOperationException(String)
Initializes a new instance of the DataOperationException<T> class.
Declaration
public DataOperationException(string message)
Parameters
Type | Name | Description |
---|---|---|
System.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 |
---|---|---|
System.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 ( langword_csharp_Nothing in Visual Basic) if no inner exception is specified. |
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.
Methods
View SourceGetObjectData(SerializationInfo, StreamingContext)
When overridden in a derived class, sets the System.Runtime.Serialization.SerializationInfo with information about the exception.
Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown. |
System.Runtime.Serialization.StreamingContext | context | The System.Runtime.Serialization.StreamingContext that contains contextual information about the source or destination. |