public function __toString() { if (!$this->translator) { return $this->message; } try { return $this->translate($this->translator); } catch (\Exception $e) { trigger_error($e->getMessage(), E_USER_ERROR); } return ''; }