mini\ValidationException class

Documentation

Exception thrown when validation fails

Wraps a ValidationError and provides access to the error details.

Inheritance

Extends: Exception

Implements: Throwable Stringable

Properties (5)

public readonly mini\Validator\ValidationError $error
protected mixed $message
protected mixed $code
protected string $file
protected int $line

Methods (12)

Documentation missing

Get the validation error

Get property errors as array (for backwards compatibility)

public __wakeup()
inherited from Exception

Documentation missing

public final getMessage()
inherited from Exception

Documentation missing

public final getCode()
inherited from Exception

Documentation missing

public final getFile()
inherited from Exception

Documentation missing

public final getLine()
inherited from Exception

Documentation missing

public final getTrace()
inherited from Exception

Documentation missing

public final getPrevious()
inherited from Exception

Documentation missing

public final getTraceAsString()
inherited from Exception

Documentation missing

public __toString()
inherited from Exception

Documentation missing

Source

src/ValidationException.php:12-39