October\Rain\Exception\ValidationException

Extends:

  • Exception

Implements:

  • Throwable

ValidationException class

Protected properties

protected array $fields

fields that are invalid

protected array $fieldPrefix

fieldPrefix

protected Illuminate\Support\MessageBag $errors

errors in the form of a message bag

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)

__construct

Parameters
  • $validation

public Illuminate\Support\MessageBag getErrors()

getErrors returns directly the message bag instance with the model's errors

public void getFields()

getFields returns invalid fields

public void setFieldPrefix($prefix)

setFieldPrefix increases the field target specificity

Parameters
  • $prefix

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()

evalErrors evaluates errors