public function __construct($message, $param, $http_status = null, $http_body = null, $json_body = null) { parent::__construct($message, $http_status, $http_body, $json_body); $this->param = $param; }
/** * decide if the http status should break the loop. * * In some cases (e.g. a 404 error) the requested resource isn't there * and won't be there. Asking once or asking 5 million times won't change * that response. In those instances, break the loop (having logged the error) * and move on. */ protected function shouldBreak(\CleverError $e) { return in_array($e->getHttpStatus(), $this->breakStatuses); }