originalMessage = $message; $this->originalCode = $code; $this->originalTrace = $trace; } /** * @return string Original exception class name. */ public function getOriginalClassName(): string { return $this->getName(); } /** * @return string Original exception message. */ public function getOriginalMessage(): string { return $this->originalMessage; } /** * @return int|string Original exception code. */ public function getOriginalCode() { return $this->originalCode; } /** * Original exception stack trace. * * @return array Same as {@see Throwable::getTrace()}, except all function arguments are formatted as strings. */ public function getOriginalTrace(): array { return $this->originalTrace; } /** * Original backtrace flattened to a human-readable string. * * @return string */ public function getOriginalTraceAsString(): string { return $this->getPanicTrace(); } }