Skip to content

ValidationError constructor (1 of 9)

Initializes a new instance of the ValidationError class.

public ValidationError()

See Also


ValidationError constructor (2 of 9)

Initializes a new instance of the ValidationError class.

public ValidationError(string message)
parameter description
message The message that describes the error.

See Also


ValidationError constructor (3 of 9)

Initializes a new instance of the ValidationError class.

public ValidationError(ITextLocalizer localizer, LocalText message)
parameter description
localizer Text localizer
message The message that describes the error.

See Also


ValidationError constructor (4 of 9)

Initializes a new instance of the ValidationError class.

public ValidationError(string message, Exception innerException)
parameter description
message The error message that explains the reason for the exception.
innerException The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.

See Also


ValidationError constructor (5 of 9)

Initializes a new instance of the ValidationError class.

public ValidationError(string errorCode, string errorMessage)
parameter description
errorCode The error code.
errorMessage The error message.

See Also


ValidationError constructor (6 of 9)

Initializes a new instance of the ValidationError class.

public ValidationError(ITextLocalizer localizer, string errorCode, LocalText errorMessage)
parameter description
localizer Text localizer
errorCode The error code.
errorMessage The error message.

See Also


ValidationError constructor (7 of 9)

Initializes a new instance of the ValidationError class.

public ValidationError(string errorCode, string? arguments, string errorMessage)
parameter description
errorCode The error code.
arguments The arguments.
errorMessage The error message.

See Also


ValidationError constructor (8 of 9)

Initializes a new instance of the ValidationError class.

public ValidationError(ITextLocalizer localizer, string errorCode, string? arguments, 
    LocalText errorMessage)
parameter description
localizer Text localizer
errorCode The error code.
arguments The arguments.
errorMessage The error message.

See Also


ValidationError constructor (9 of 9)

Initializes a new instance of the ValidationError class.

public ValidationError(string errorCode, string? arguments, string errorMessageFormat, 
    params object[] formatArgs)
parameter description
errorCode The error code.
arguments The arguments.
errorMessageFormat The error message format.
formatArgs The format arguments.

See Also