7 class Exception
extends \Exception
9 function __construct($code, $message) {
10 parent
::__construct($message, $code);
13 function send(Response
$res) {
14 $res->setResponseCode($this->code
);
15 $res->setBody(new http\Message\Body
);
16 $res->getBody()->append($this->message
);