Open sandboxFocus

Constructor ContractExceptionInfo

ContractExceptionInfo(Type, LocationContractAttribute, object, string, LocationKind, LocationValidationContext, string, object[])

Initializes the struct.

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

Requested Type of the exception that should be created.

LocationContractAttribute aspect

Aspect that requested the exception.

object value

Value being assigned to the location.

string locationName

Name of the location.

LocationKind locationKind

Location kind.

LocationValidationContext context

The context of the location validation.

string messageId

The id of the error message template to be used in the exception.

object[] messageArguments

Any additional parameters to be used in the exception message formatting.