Lines Matching defs:error
116 // is OK. Usually, error status values should come with a valid position.
120 bool ok() const { return error == Error::OK; }
122 Error error = Error::OK;
124 Status(Error error, size_t pos) : error(error), pos(pos) {}
127 // Returns a 7 bit US-ASCII string, either "OK" or an error message
153 // The parser may send one error even after other events have already
156 // |error| must be an eror, as in, |error.is_ok()| can't be true.
157 virtual void HandleError(Status error) = 0;
278 // that drives it. The handler will encode into |out|, and iff an error occurs
279 // it will set |status| to an error and clear |out|. Otherwise, |status.ok()|
296 // Encountered an error in the structure of the message. Consult
365 // If TokenTag() is CBORTokenTag::ERROR_VALUE, then Status().error describes
366 // the error more precisely; otherwise it'll be set to Error::OK.
395 void SetError(Error error);
410 // |out|. If an error occurs, sends |out->HandleError|, and parsing stops.