1. Stylelabs.M.Sdk.Exceptions

Class ValidationException

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

Inheritance

object

SdkException

ValidationException

Namespace: StylelabsStylelabs.MSdkExceptions

Assembly: Stylelabs.M.Sdk.dll

Syntax

public class ValidationException : SdkException

Constructors

ValidationException()

Initializes a new instance of the ValidationException class.

Declaration

public ValidationException()

ValidationException(SerializationInfo, StreamingContext)

Initializes a new instance of the ValidationException class.

Declaration

protected ValidationException(SerializationInfo serializationInfo, StreamingContext streamingContext)

Parameters

TypeNameDescription
SerializationInfoserializationInfoThe .
StreamingContextstreamingContextThe .

ValidationException(string, Exception)

Initializes a new instance of the ValidationException class.

Declaration

public ValidationException(string message, Exception exception)

Parameters

TypeNameDescription
stringmessageThe exception message.
ExceptionexceptionThe .

ValidationException(string, IEnumerable, Exception)

Initializes a new instance of the ValidationException class.

Declaration

public ValidationException(string message, IEnumerable<ValidationFailure> failures, Exception exception)

Parameters

TypeNameDescription
stringmessageThe exception message.
IEnumerable<>ValidationFailurefailuresCollection of ValidationFailure.
ExceptionexceptionThe .

ValidationException(string, IEnumerable)

Initializes a new instance of the ValidationException class.

Declaration

public ValidationException(string message, IEnumerable<ValidationFailure> failures)

Parameters

TypeNameDescription
stringmessageThe exception message.
IEnumerable<>ValidationFailurefailuresCollection of ValidationFailure.

ValidationException(string, ValidationFailure)

Initializes a new instance of the ValidationException class.

Declaration

public ValidationException(string message, ValidationFailure failure)

Parameters

TypeNameDescription
stringmessageThe exception message.
ValidationFailurefailureThe ValidationFailure.

ValidationException(string)

Initializes a new instance of the ValidationException class.

Declaration

public ValidationException(string message)

Parameters

TypeNameDescription
stringmessageThe exception message.

Properties

Failures

Gets the ValidationFailure.

Declaration

public IList<ValidationFailure> Failures { get; }

Property Value

TypeDescription
IList<>ValidationFailure

Methods

ToString()

Declaration

public override string ToString()

Returns

TypeDescription
string
If you have suggestions for improving this article, let us know!