message = $message; } /** * Message of the error. * * @var string */ protected $message; /** * Get the code of the error. * * @return string Code of the error. */ public function getCode() { return (new ReflectionClass($this))->getShortName(); } /** * Get the message of the error. * * @return string Message of the error. */ public function getMessage() { return $this->message; } }