@@ -83,14 +83,14 @@ class document {
83
83
* Read the root element of this document as a JSON array.
84
84
*
85
85
* @return The JSON array.
86
- * @exception invalid_json (UNEXPECTED_TYPE) if the JSON element is not an array
86
+ * @exception simdjson_error (UNEXPECTED_TYPE) if the JSON element is not an array
87
87
*/
88
88
operator array () const noexcept (false );
89
89
/* *
90
90
* Read this element as a JSON object (key/value pairs).
91
91
*
92
92
* @return The JSON object.
93
- * @exception invalid_json (UNEXPECTED_TYPE) if the JSON element is not an object
93
+ * @exception simdjson_error (UNEXPECTED_TYPE) if the JSON element is not an object
94
94
*/
95
95
operator object () const noexcept (false );
96
96
@@ -239,7 +239,7 @@ class document::doc_result {
239
239
* Return the document, or throw an exception if it is invalid.
240
240
*
241
241
* @return the document.
242
- * @exception invalid_json if the document is invalid or there was an error parsing it.
242
+ * @exception simdjson_error if the document is invalid or there was an error parsing it.
243
243
*/
244
244
operator document () noexcept (false );
245
245
@@ -298,7 +298,7 @@ class document::doc_ref_result {
298
298
* A reference to the document, or throw an exception if it is invalid.
299
299
*
300
300
* @return the document.
301
- * @exception invalid_json if the document is invalid or there was an error parsing it.
301
+ * @exception simdjson_error if the document is invalid or there was an error parsing it.
302
302
*/
303
303
operator document&() noexcept (false );
304
304
@@ -449,7 +449,7 @@ class document::element : protected document::tape_ref {
449
449
* Read this element as a boolean.
450
450
*
451
451
* @return The boolean value
452
- * @exception invalid_json (UNEXPECTED_TYPE) if the JSON element is not a boolean.
452
+ * @exception simdjson_error (UNEXPECTED_TYPE) if the JSON element is not a boolean.
453
453
*/
454
454
inline operator bool () const noexcept (false );
455
455
@@ -460,7 +460,7 @@ class document::element : protected document::tape_ref {
460
460
* an actual string.
461
461
*
462
462
* @return The string value.
463
- * @exception invalid_json (UNEXPECTED_TYPE) if the JSON element is not a string.
463
+ * @exception simdjson_error (UNEXPECTED_TYPE) if the JSON element is not a string.
464
464
*/
465
465
inline explicit operator const char *() const noexcept (false );
466
466
@@ -471,46 +471,46 @@ class document::element : protected document::tape_ref {
471
471
* an actual string.
472
472
*
473
473
* @return The string value.
474
- * @exception invalid_json (UNEXPECTED_TYPE) if the JSON element is not a string.
474
+ * @exception simdjson_error (UNEXPECTED_TYPE) if the JSON element is not a string.
475
475
*/
476
476
inline operator std::string_view () const noexcept (false );
477
477
478
478
/* *
479
479
* Read this element as an unsigned integer.
480
480
*
481
481
* @return The integer value.
482
- * @exception invalid_json (UNEXPECTED_TYPE) if the JSON element is not an integer
483
- * @exception invalid_json (NUMBER_OUT_OF_RANGE) if the integer doesn't fit in 64 bits or is negative
482
+ * @exception simdjson_error (UNEXPECTED_TYPE) if the JSON element is not an integer
483
+ * @exception simdjson_error (NUMBER_OUT_OF_RANGE) if the integer doesn't fit in 64 bits or is negative
484
484
*/
485
485
inline operator uint64_t () const noexcept (false );
486
486
/* *
487
487
* Read this element as an signed integer.
488
488
*
489
489
* @return The integer value.
490
- * @exception invalid_json (UNEXPECTED_TYPE) if the JSON element is not an integer
491
- * @exception invalid_json (NUMBER_OUT_OF_RANGE) if the integer doesn't fit in 64 bits
490
+ * @exception simdjson_error (UNEXPECTED_TYPE) if the JSON element is not an integer
491
+ * @exception simdjson_error (NUMBER_OUT_OF_RANGE) if the integer doesn't fit in 64 bits
492
492
*/
493
493
inline operator int64_t () const noexcept (false );
494
494
/* *
495
495
* Read this element as an double.
496
496
*
497
497
* @return The double value.
498
- * @exception invalid_json (UNEXPECTED_TYPE) if the JSON element is not a number
499
- * @exception invalid_json (NUMBER_OUT_OF_RANGE) if the integer doesn't fit in 64 bits or is negative
498
+ * @exception simdjson_error (UNEXPECTED_TYPE) if the JSON element is not a number
499
+ * @exception simdjson_error (NUMBER_OUT_OF_RANGE) if the integer doesn't fit in 64 bits or is negative
500
500
*/
501
501
inline operator double () const noexcept (false );
502
502
/* *
503
503
* Read this element as a JSON array.
504
504
*
505
505
* @return The JSON array.
506
- * @exception invalid_json (UNEXPECTED_TYPE) if the JSON element is not an array
506
+ * @exception simdjson_error (UNEXPECTED_TYPE) if the JSON element is not an array
507
507
*/
508
508
inline operator document::array () const noexcept (false );
509
509
/* *
510
510
* Read this element as a JSON object (key/value pairs).
511
511
*
512
512
* @return The JSON object.
513
- * @exception invalid_json (UNEXPECTED_TYPE) if the JSON element is not an object
513
+ * @exception simdjson_error (UNEXPECTED_TYPE) if the JSON element is not an object
514
514
*/
515
515
inline operator document::object () const noexcept (false );
516
516
@@ -1187,7 +1187,7 @@ class document::parser {
1187
1187
1188
1188
// type aliases for backcompat
1189
1189
using Iterator = document::iterator;
1190
- using InvalidJSON = invalid_json ;
1190
+ using InvalidJSON = simdjson_error ;
1191
1191
1192
1192
// Next location to write to in the tape
1193
1193
uint32_t current_loc{0 };
0 commit comments