public function toException($message = '') { if ($this->exception) { return $this->exception; } return new ResultException($message . ';' . $this->message); }