Search Results for

    Show / Hide Table of Contents
    View Source

    Class DataOperationException<T>

    Inheritance
    System.Object
    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 Source

    DataOperationException()

    Initializes a new instance of the DataOperationException<T> class.

    Declaration
    public DataOperationException()
    View Source

    DataOperationException(T)

    Initializes a new instance of the DataOperationException<T> class.

    Declaration
    public DataOperationException(T operation)
    Parameters
    Type Name Description
    T operation

    The operation.

    View Source

    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.

    View Source

    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.

    View Source

    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.

    View Source

    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 Source

    Operation

    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 Source

    GetObjectData(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.

    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • DataOperationException()
      • DataOperationException(T)
      • DataOperationException(T, String)
      • DataOperationException(SerializationInfo, StreamingContext)
      • DataOperationException(String)
      • DataOperationException(String, Exception)
    • Properties
      • Operation
    • Methods
      • GetObjectData(SerializationInfo, StreamingContext)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX