cphot 0.1
A C++ tool for computing photometry from spectra.
|
|
Go to the documentation of this file.
15 #ifndef RAPIDJSON_ERROR_ERROR_H_
16 #define RAPIDJSON_ERROR_ERROR_H_
18 #include "../rapidjson.h"
22 RAPIDJSON_DIAG_OFF(padded)
38 #ifndef RAPIDJSON_ERROR_CHARTYPE
39 #define RAPIDJSON_ERROR_CHARTYPE char
51 #ifndef RAPIDJSON_ERROR_STRING
52 #define RAPIDJSON_ERROR_STRING(x) x
116 size_t Offset()
const {
return offset_; }
155 #endif // RAPIDJSON_ERROR_ERROR_H_
#define RAPIDJSON_NAMESPACE_END
provide custom rapidjson namespace (closing expression)
ParseResult(ParseErrorCode code, size_t offset)
Constructor to set an error.
#define RAPIDJSON_NAMESPACE_BEGIN
provide custom rapidjson namespace (opening expression)
@ kParseErrorTermination
Parsing was terminated.
bool operator==(ParseErrorCode code) const
@ kParseErrorNumberTooBig
Number too big to be stored in double.
@ kParseErrorStringUnicodeEscapeInvalidHex
Incorrect hex digit after \u escape in string.
size_t Offset() const
Get the error offset, if IsError(), 0 otherwise.
bool operator==(const ParseResult &that) const
@ kParseErrorObjectMissName
Missing a name for object member.
@ kParseErrorStringUnicodeSurrogateInvalid
The surrogate pair in string is invalid.
bool IsError() const
Whether the result is an error.
@ kParseErrorStringInvalidEncoding
Invalid encoding in string.
void Set(ParseErrorCode code, size_t offset=0)
Update error code and offset.
friend bool operator==(ParseErrorCode code, const ParseResult &err)
ParseErrorCode
Error code of parsing.
ParseResult()
Default constructor, no error.
Result of parsing (wraps ParseErrorCode)
void Clear()
Reset error code.
#define RAPIDJSON_ERROR_CHARTYPE
Character type of error messages.
@ kParseErrorDocumentRootNotSingular
The document root must not follow by other values.
@ kParseErrorArrayMissCommaOrSquareBracket
Missing a comma or ']' after an array element.
@ kParseErrorNumberMissExponent
Miss exponent in number.
@ kParseErrorStringMissQuotationMark
Missing a closing quotation mark in string.
ParseErrorCode Code() const
Get the error code.
@ kParseErrorNone
No error.
@ kParseErrorStringEscapeInvalid
Invalid escape character in string.
@ kParseErrorObjectMissColon
Missing a colon after a name of object member.
@ kParseErrorUnspecificSyntaxError
Unspecific syntax error.
@ kParseErrorObjectMissCommaOrCurlyBracket
Missing a comma or '}' after an object member.
@ kParseErrorValueInvalid
Invalid value.
@ kParseErrorDocumentEmpty
The document is empty.
@ kParseErrorNumberMissFraction
Miss fraction part in number.