@@ -83,14 +83,14 @@ class document {
8383 * Read the root element of this document as a JSON array.
8484 *
8585 * @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
8787 */
8888 operator array () const noexcept (false );
8989 /* *
9090 * Read this element as a JSON object (key/value pairs).
9191 *
9292 * @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
9494 */
9595 operator object () const noexcept (false );
9696
@@ -239,7 +239,7 @@ class document::doc_result {
239239 * Return the document, or throw an exception if it is invalid.
240240 *
241241 * @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.
243243 */
244244 operator document () noexcept (false );
245245
@@ -298,7 +298,7 @@ class document::doc_ref_result {
298298 * A reference to the document, or throw an exception if it is invalid.
299299 *
300300 * @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.
302302 */
303303 operator document&() noexcept (false );
304304
@@ -449,7 +449,7 @@ class document::element : protected document::tape_ref {
449449 * Read this element as a boolean.
450450 *
451451 * @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.
453453 */
454454 inline operator bool () const noexcept (false );
455455
@@ -460,7 +460,7 @@ class document::element : protected document::tape_ref {
460460 * an actual string.
461461 *
462462 * @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.
464464 */
465465 inline explicit operator const char *() const noexcept (false );
466466
@@ -471,46 +471,46 @@ class document::element : protected document::tape_ref {
471471 * an actual string.
472472 *
473473 * @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.
475475 */
476476 inline operator std::string_view () const noexcept (false );
477477
478478 /* *
479479 * Read this element as an unsigned integer.
480480 *
481481 * @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
484484 */
485485 inline operator uint64_t () const noexcept (false );
486486 /* *
487487 * Read this element as an signed integer.
488488 *
489489 * @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
492492 */
493493 inline operator int64_t () const noexcept (false );
494494 /* *
495495 * Read this element as an double.
496496 *
497497 * @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
500500 */
501501 inline operator double () const noexcept (false );
502502 /* *
503503 * Read this element as a JSON array.
504504 *
505505 * @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
507507 */
508508 inline operator document::array () const noexcept (false );
509509 /* *
510510 * Read this element as a JSON object (key/value pairs).
511511 *
512512 * @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
514514 */
515515 inline operator document::object () const noexcept (false );
516516
@@ -1187,7 +1187,7 @@ class document::parser {
11871187
11881188 // type aliases for backcompat
11891189 using Iterator = document::iterator;
1190- using InvalidJSON = invalid_json ;
1190+ using InvalidJSON = simdjson_error ;
11911191
11921192 // Next location to write to in the tape
11931193 uint32_t current_loc{0 };
0 commit comments