Class ValidationException
The exception that is thrown when validation problems were detected during persisting.
Namespace: StylelabsStylelabs.MSdkExceptions
Assembly: Stylelabs.M.Sdk.dll
Syntax
public class ValidationException : SdkExceptionConstructors
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
| Type | Name | Description |
|---|---|---|
| SerializationInfo | serializationInfo |
The . |
| StreamingContext | streamingContext |
The . |
ValidationException(string, Exception)
Initializes a new instance of the ValidationException class.
Declaration
public ValidationException(string message, Exception exception)Parameters
| Type | Name | Description |
|---|---|---|
| string | message |
The exception message. |
| Exception | exception |
The . |
ValidationException(string, IEnumerable<ValidationFailure>, Exception)
Initializes a new instance of the ValidationException class.
Declaration
public ValidationException(string message, IEnumerable<ValidationFailure> failures, Exception exception)Parameters
| Type | Name | Description |
|---|---|---|
| string | message |
The exception message. |
| IEnumerable<>ValidationFailure | failures |
Collection of ValidationFailure. |
| Exception | exception |
The . |
ValidationException(string, IEnumerable<ValidationFailure>)
Initializes a new instance of the ValidationException class.
Declaration
public ValidationException(string message, IEnumerable<ValidationFailure> failures)Parameters
| Type | Name | Description |
|---|---|---|
| string | message |
The exception message. |
| IEnumerable<>ValidationFailure | failures |
Collection of ValidationFailure. |
ValidationException(string, ValidationFailure)
Initializes a new instance of the ValidationException class.
Declaration
public ValidationException(string message, ValidationFailure failure)Parameters
| Type | Name | Description |
|---|---|---|
| string | message |
The exception message. |
| ValidationFailure | failure |
The ValidationFailure. |
ValidationException(string)
Initializes a new instance of the ValidationException class.
Declaration
public ValidationException(string message)Parameters
| Type | Name | Description |
|---|---|---|
| string | message |
The exception message. |
Properties
Failures
Gets the ValidationFailure.
Declaration
public IList<ValidationFailure> Failures { get; }Property Value
| Type | Description |
|---|---|
| IList<>ValidationFailure |
Methods
ToString()
Declaration
public override string ToString()Returns
| Type | Description |
|---|---|
| string |