hint = $hint; parent::__construct($message, $code, $previous); } /** * Returns a string representation of this Exception that includes the error * code, the message and the hint. * * @since 23.0.0 * @return string */ public function __toString(): string { return self::class . ": [{$this->code}]: {$this->message} ({$this->hint})\n"; } /** * Returns the hint with the intention to be presented to the end user. If * an empty hint was specified upon instantiation, the message is returned * instead. * * @since 23.0.0 * @return string */ public function getHint(): string { if (empty($this->hint)) { return $this->message; } return $this->hint; } }