Table of Contents

Class ValidationError

Namespace
Rascal.Errors
Assembly
Rascal.dll

An error which represents a validation failure on some object.

public sealed class ValidationError : Error
Inheritance
ValidationError
Inherited Members
Extension Methods

Constructors

ValidationError(string, object?)

An error which represents a validation failure on some object.

public ValidationError(string message, object? source)

Parameters

message string

A message describing the validation.

source object

The optional object which failed validation.

Properties

Message

The message used to display the error.

public override string Message { get; }

Property Value

string
An error which represents a validation failure on some object.

Source

The optional object which failed validation.

public object? Source { get; }

Property Value

object
An error which represents a validation failure on some object.