Пример #1
0
 public function __construct()
 {
     if (!extension_loaded('json')) {
         throw new ExceptionUnimplemented('The JSON extension is not loaded');
     }
     parent::__construct();
 }
Пример #2
0
 public function __construct(\Exception $e)
 {
     $this->setException($e);
     parent::__construct();
 }