Class ValidationException

Current version: 4.0

The exception that is thrown when validation problems were detected during persisting.

Inheritance
object
ValidationException
Namespace: StylelabsStylelabs.MSdkExceptions
Assembly: Stylelabs.M.Sdk.dll
Syntax
RequestResponse
public class ValidationException : SdkException

Constructors

ValidationException()

Initializes a new instance of the ValidationException class.

Declaration
RequestResponse
public ValidationException()

ValidationException(SerializationInfo, StreamingContext)

Initializes a new instance of the ValidationException class.

Declaration
RequestResponse
protected ValidationException(SerializationInfo serializationInfo, StreamingContext streamingContext)
Parameters
TypeNameDescription
SerializationInfoserializationInfo

The .

StreamingContextstreamingContext

The .

ValidationException(string, Exception)

Initializes a new instance of the ValidationException class.

Declaration
RequestResponse
public ValidationException(string message, Exception exception)
Parameters
TypeNameDescription
stringmessage

The exception message.

Exceptionexception

The .

ValidationException(string, IEnumerable<ValidationFailure>, Exception)

Initializes a new instance of the ValidationException class.

Declaration
RequestResponse
public ValidationException(string message, IEnumerable<ValidationFailure> failures, Exception exception)
Parameters
TypeNameDescription
stringmessage

The exception message.

IEnumerable<>ValidationFailurefailures

Collection of ValidationFailure.

Exceptionexception

The .

ValidationException(string, IEnumerable<ValidationFailure>)

Initializes a new instance of the ValidationException class.

Declaration
RequestResponse
public ValidationException(string message, IEnumerable<ValidationFailure> failures)
Parameters
TypeNameDescription
stringmessage

The exception message.

IEnumerable<>ValidationFailurefailures

Collection of ValidationFailure.

ValidationException(string, ValidationFailure)

Initializes a new instance of the ValidationException class.

Declaration
RequestResponse
public ValidationException(string message, ValidationFailure failure)
Parameters
TypeNameDescription
stringmessage

The exception message.

ValidationFailurefailure

The ValidationFailure.

ValidationException(string)

Initializes a new instance of the ValidationException class.

Declaration
RequestResponse
public ValidationException(string message)
Parameters
TypeNameDescription
stringmessage

The exception message.

Properties

Failures

Gets the ValidationFailure.

Declaration
RequestResponse
public IList<ValidationFailure> Failures { get; }
Property Value
TypeDescription
IList<>ValidationFailure

Methods

ToString()

Declaration
RequestResponse
public override string ToString()
Returns
TypeDescription
string

Do you have some feedback for us?

If you have suggestions for improving this article,