Show / Hide Table of Contents

    Class ValidationException

    The exception that is thrown when entity validation routine found an error.

    Inheritance
    System.Object
    System.Exception
    ValidationException
    Implements
    System.Runtime.InteropServices._Exception
    System.Runtime.Serialization.ISerializable
    Inherited Members
    System.Exception.GetBaseException()
    System.Exception.ToString()
    System.Exception.GetType()
    System.Exception.Message
    System.Exception.Data
    System.Exception.InnerException
    System.Exception.TargetSite
    System.Exception.StackTrace
    System.Exception.HelpLink
    System.Exception.Source
    System.Exception.HResult
    System.Exception.SerializeObjectState
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.MemberwiseClone()
    Namespace: Nevatech.Vsb.Repository
    Assembly: Nevatech.Vsb.Repository.dll
    Syntax
    public class ValidationException : Exception, _Exception, ISerializable

    Constructors

    ValidationException()

    Initializes new exception with default error message.

    Declaration
    public ValidationException()

    ValidationException(SerializationInfo, StreamingContext)

    Initializes new instance with serialized data.

    Declaration
    protected ValidationException(SerializationInfo info, StreamingContext context)
    Parameters
    Type Name Description
    System.Runtime.Serialization.SerializationInfo info

    See System.Runtime.Serialization.SerializationInfo.

    System.Runtime.Serialization.StreamingContext context

    See System.Runtime.Serialization.StreamingContext.

    ValidationException(String)

    Initializes new exception with provided error message.

    Declaration
    public ValidationException(string message)
    Parameters
    Type Name Description
    System.String message

    Message that describes the error.

    ValidationException(String, Exception)

    Initializes new exception with provided error message and inner exception.

    Declaration
    public ValidationException(string message, Exception innerException)
    Parameters
    Type Name Description
    System.String message

    Message that describes the error.

    System.Exception innerException

    Exception which is a cause of the current exception.

    ValidationException(String, HttpStatusCode, String)

    Initializes new exception with provided error message, status code, and description.

    Declaration
    public ValidationException(string message, HttpStatusCode statusCode, string statusDescription)
    Parameters
    Type Name Description
    System.String message

    Message that describes the error.

    System.Net.HttpStatusCode statusCode

    HTTP status code associated with this error.

    System.String statusDescription

    HTTP status code description (reason) associated with this error.

    ValidationException(String, HttpStatusCode, String, Exception)

    Initializes new exception with provided error message, status code, description, and inner exception.

    Declaration
    public ValidationException(string message, HttpStatusCode statusCode, string statusDescription, Exception innerException)
    Parameters
    Type Name Description
    System.String message

    Message that describes the error.

    System.Net.HttpStatusCode statusCode

    HTTP status code associated with this error.

    System.String statusDescription

    HTTP status code description (reason) associated with this error.

    System.Exception innerException

    Exception which is a cause of the current exception.

    Properties

    StatusCode

    Gets the HTTP status code associated with this error.

    Declaration
    public HttpStatusCode StatusCode { get; }
    Property Value
    Type Description
    System.Net.HttpStatusCode

    StatusDescription

    Gets the HTTP status code description (reason) associated with this error.

    Declaration
    public string StatusDescription { get; }
    Property Value
    Type Description
    System.String

    Methods

    GetObjectData(SerializationInfo, StreamingContext)

    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

    See System.Runtime.Serialization.SerializationInfo.

    System.Runtime.Serialization.StreamingContext context

    See System.Runtime.Serialization.StreamingContext.

    Overrides
    System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)

    Implements

    System.Runtime.InteropServices._Exception
    System.Runtime.Serialization.ISerializable
    Back to top Nevatech Sentinet 6.6 Online Documentation