public function __construct(CM_Exception $e) { parent::__construct($e); $formatter = new CM_ExceptionHandling_Formatter_Plain(); $serializedException = new CM_ExceptionHandling_SerializableException($e); $this->message = get_class($e) . ': ' . $e->getMessage() . PHP_EOL . $formatter->getMetaInfo($serializedException); }
/** * @param RequestException $e */ public function __construct(RequestException $e) { $this->wrappedException = $e; parent::__construct($e); }