esi_response = $esi_response; $this->original_exception = $exception; // Finish constructing the exception parent::__construct( $this->getError(), $this->getEsiResponse()->getErrorCode(), $exception->getPrevious() ); } /** * @return null|string */ public function getError() { return $this->getEsiResponse()->error(); } /** * @return \Seat\Eseye\Containers\EsiResponse */ public function getEsiResponse(): EsiResponse { return $this->esi_response; } /** * @return \Exception */ public function getOriginalException(): Exception { return $this->original_exception; } }