public function __construct() { if (!extension_loaded('json')) { throw new ExceptionUnimplemented('The JSON extension is not loaded'); } parent::__construct(); }
public function __construct(\Exception $e) { $this->setException($e); parent::__construct(); }