Class ValidationException
The exception that is thrown when validation problems were detected during persisting.
Inheritance
object
ValidationException
Namespace: StylelabsStylelabs.MSdkExceptions
Assembly: Stylelabs.M.Sdk.dll
Syntax
Constructors
ValidationException()
Initializes a new instance of the ValidationException class.
Declaration
ValidationException(SerializationInfo, StreamingContext)
Initializes a new instance of the ValidationException class.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| SerializationInfo | serializationInfo | The . |
| StreamingContext | streamingContext | The . |
ValidationException(string, Exception)
Initializes a new instance of the ValidationException class.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The exception message. |
| Exception | exception | The . |
ValidationException(string, IEnumerable, Exception)
Initializes a new instance of the ValidationException class.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The exception message. |
| IEnumerable<>ValidationFailure | failures | Collection of ValidationFailure. |
| Exception | exception | The . |
ValidationException(string, IEnumerable)
Initializes a new instance of the ValidationException class.
Declaration
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
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The exception message. |
| ValidationFailure | failure | The ValidationFailure. |
ValidationException(string)
Initializes a new instance of the ValidationException class.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The exception message. |
Properties
Failures
Gets the ValidationFailure.
Declaration
Property Value
| Type | Description |
|---|---|
| IList<>ValidationFailure |
Methods
ToString()
Declaration
Returns
| Type | Description |
|---|---|
| string |
If you have suggestions for improving this article, let us know!