public function __construct($message = NULL, $code = 500) { parent::__construct($message, $code); }
function __construct($errors = array()) { if (!is_array($errors) and !$errors instanceof WFErrorArray) { throw new WFException("WFErrorsException requires an array of WFError objects, was passed: " . $errors); } if (!$errors instanceof WFErrorArray) { $errors = new WFErrorArray($errors); } $this->errors = $errors; $message = ''; if ($this->errors) { $message = join(',', $this->errors->valueForKeyPath('allErrors.errorMessage')); } parent::__construct($message); }