public function __construct($controller, $code = 0, Exception $previous = null) { parent::__construct(Response::HTTP_NOT_FOUND, "Controller '{$controller}' could not be located.", $code, $previous); }
public function __construct($method, $code = 0, Exception $previous = null) { // Save the method $this->method = $method; parent::__construct(Response::HTTP_METHOD_NOT_ALLOWED, "Method '{$this->method}' is not allowed by this endpoint.", $code, $previous); }