public function getErrorResponse() { $response = parent::getErrorResponse(); if (!empty($this->errors)) { $response->withErrors($this->errors); } return $response; }
public function __construct($message) { parent::__construct($message); $this->redirect = null; $this->context = array(); }