<?php class Foo extends Exception { public function __construct () { $this->code = 123; } } try { throw new Foo(); } catch (Exception $e) { assert($e->code === 23); }
You have javascript disabled. You will not be able to edit any code.