ContractExceptionInfo(Type, LocationContractAttribute, object, string, LocationKind, LocationValidationContext, string, object[])
Initializes a new instance of the ContractExceptionInfo class.
Declaration
public ContractExceptionInfo(Type exceptionType, LocationContractAttribute aspect, object value, string locationName, LocationKind locationKind, LocationValidationContext context, string messageId, object[] messageArguments)Parameters
| Type | Name | Description |
|---|---|---|
| Type | exceptionType | The requested type of the exception that should be created. |
| LocationContractAttribute | aspect | The aspect that requested the exception. |
| object | value | The value being assigned to the location. |
| string | locationName | The name of the location. |
| LocationKind | locationKind | The kind of the location. |
| LocationValidationContext | context | The context of the location validation. |
| string | messageId | The identifier of the error message template to be used in the exception. |
| object[] | messageArguments | The additional parameters to be used in the exception message formatting. |