October\Rain\Exception\ValidationException

Source: ~/vendor/october/rain/src/Exception/ValidationException.php

Extends:

  • Exception

Implements:

  • Throwable

Validation exception class.

Protected properties

protected array $fields

Collection of invalid fields.

protected Illuminate\Support\MessageBag $errors

The message bag instance containing validation error messages

Show inherited protected properties

Inherited protected properties

  • protected $message - defined in Exception.
  • protected $code - defined in Exception.
  • protected $file - defined in Exception.
  • protected $line - defined in Exception.

Public methods

public void __construct($validation)

Constructor.

Parameters
  • $validation

public Illuminate\Support\MessageBag getErrors()

Returns directly the message bag instance with the model's errors.

public void getFields()

Returns invalid fields.

Show inherited public methods

Inherited public methods

  • public void __toString() - defined in Exception.
  • public void __wakeup() - defined in Exception.
  • public void getCode() - defined in Exception.
  • public void getFile() - defined in Exception.
  • public void getLine() - defined in Exception.
  • public void getMessage() - defined in Exception.
  • public void getPrevious() - defined in Exception.
  • public void getTrace() - defined in Exception.
  • public void getTraceAsString() - defined in Exception.

Protected methods

protected void evalErrors()

Evaluate errors.