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