LocatedValidationFailure

@Serializable
@SerialName(value = "failure")
class LocatedValidationFailure : LocatedValidationIssue(source)

Validation error emitted by a manager containing location information when a validation fails to run (throws an exception while being executed). The code of this validation error is ValidationFailure.CODE.

The validation error data contains entries with keys "validation", "exception", and "stackTrace" containing information on the name of the validation that caused the exception as well as information about the exception itself. These data properties are also accessible via properties of the class with the same name.

Properties

Link copied to clipboard
open override val code: String

Code representing the issue.

Link copied to clipboard
open override val data: ValidationIssueData

Additional issue data. This additional data can be used, for example, to help write a user-friendly message associated with the issue.

Link copied to clipboard
open override val dependencies: Set<AbsolutePath>

Paths of values that the validation that produced this issue depends on.

Link copied to clipboard
open override val dependsOnDescendants: Boolean = false

Whether the validation that produced this issue depends on the descendants of the validated value.

Link copied to clipboard

Exception that occurred (name and message).

Link copied to clipboard

External contexts that the validation that produced this issue depends on.

Link copied to clipboard
open override val path: AbsolutePath

Path of the value containing the issue.

Link copied to clipboard

Severity of the located validation issue.

Link copied to clipboard

Exception stack trace.

Link copied to clipboard

Name of the validation where the exception occurred.

Functions

Link copied to clipboard

Whether this located validation issue "contains" issue.

Link copied to clipboard

Utility function which converts the paths of a LocatedValidationIssue where table rows are indexed by their index into paths where said rows are indexed by their id in the corresponding table within the provided form value formValue (with schema formSchema).

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String