A Sandcastle Documented Class Library

# ValidationException Class

The exception that is thrown when an attempted operation failed due to validation criteria not being met.
Inheritance Hierarchy
System
Object
System
Exception
Dundas.BI
ValidationException

Namespace: Dundas.BI
Assembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (10.0.0.1002)
Syntax
C#
VB
C++
F#
Copy

    [SerializableAttribute]
    public class ValidationException : Exception

    <SerializableAttribute>
    Public Class ValidationException
    	Inherits Exception

    [SerializableAttribute]
    public ref class ValidationException : public Exception

    [<SerializableAttribute>]
    type ValidationException =
        class
            inherit Exception
        end

The ValidationException type exposes the following members.

Constructors

| Name | Description
--- | --- | ---
| ValidationException | Initializes a new instance of the ValidationException class using a generic error message.
| ValidationException(String) | Initializes a new instance of the ValidationException class with a specified error message.
| ValidationException(SerializationInfo, StreamingContext) | Initializes a new instance of the ValidationException class with serialized data.
| ValidationException(String, IEnumerable String ) | Initializes a new instance of the ValidationException class with a list of specific messages corresponding to the validation failures.
| ValidationException(String, Exception) | Initializes a new instance of the ValidationException class with a specified error message and a reference to the inner exception that is the cause of this exception.

Top
Properties

| Name | Description
--- | --- | ---
| Details | Gets a list of specific messages corresponding to reasons for the validation failure.

Top
Methods

| Name | Description
--- | --- | ---
| GetObjectData | When overridden in a derived class, sets the SerializationInfo with information about the exception. (Overrides Exception GetObjectData(SerializationInfo, StreamingContext).)
| ToString | Creates and returns a string representation of the current exception. (Overrides Exception ToString .)

Top
Extension Methods

| Name | Description
--- | --- | ---
| GetDetailsMessage | Gets the details message associated with an Exception. (Defined by ExceptionExtensions.)
| GetErrorCode | Gets the error code associated with an Exception. (Defined by ExceptionExtensions.)
| GetHelpTopicReference | Gets the help topic reference associated with an Exception. (Defined by ExceptionExtensions.)
| GetSupplementalMessage | Gets the supplemental message associated with an Exception. (Defined by ExceptionExtensions.)
| SetAsDisplayException | Marks the exception as the "display" exception. (Defined by ExceptionExtensions.)
| SetDetailsMessage | Sets the details message on an exception object. (Defined by ExceptionExtensions.)
| SetErrorCode | Sets the error code on an exception object. (Defined by ExceptionExtensions.)
| SetHelpTopicReference | Sets an associated help topic reference on an exception object. (Defined by ExceptionExtensions.)
| SetSupplementalMessage | Sets the supplemental message on an exception object. (Defined by ExceptionExtensions.)

Top
See Also

#### Reference

Dundas.BI Namespace