function __construct($title, $err_no = 0, $http = null) { // auto close on exception if ($http) { $http->Close(); } return parent::__construct($title, $err_no); }
function __construct($title, $err_no = 0) { if (is_array($err_no)) { $title .= sprintf(' (%d : %s)', $err_no['code'], $err_no['message']); $err_no = $err_no['code']; } parent::__construct($title, $err_no); }