October\Rain\Halcyon\Exception\ModelException

Extends:

Implements:

  • Throwable

ModelException used when validation fails, contains the invalid model for easy analysis

Protected properties

protected Model $model

model

Show inherited protected properties

Inherited protected properties

Public methods

public void __construct($model)

__construct receives the invalid model

Parameters
  • $model

public void getModel()

getModel returns the model with invalid attributes

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 Illuminate\Support\MessageBag getErrors() - defined in October\Rain\Exception\ValidationException. getErrors returns directly the message bag instance with the model's errors.
  • public void getFields() - defined in October\Rain\Exception\ValidationException. getFields returns invalid fields.
  • 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.
  • public void setFieldPrefix($prefix) - defined in October\Rain\Exception\ValidationException. setFieldPrefix increases the field target specificity.

Protected methods

Show inherited protected methods

Inherited protected methods