JSON Voorhees
Killer JSON for C++
|
Error thrown when an unrepresentable value is encountered in a JSON AST. More...
#include <jsonv/algorithm.hpp>
Public Types | |
enum | code { code::non_finite_number } |
Special code for describing the error encountered. More... | |
Public Member Functions | |
validation_error (code code_, jsonv::path path_, jsonv::value value_) | |
code | error_code () const |
Get the error code. More... | |
const jsonv::path & | path () const |
Get the path in the AST the error was found. More... | |
const jsonv::value & | value () const |
Get the value that caused the error. More... | |
Error thrown when an unrepresentable value is encountered in a JSON AST.
Definition at line 423 of file algorithm.hpp.
|
strong |
Special code for describing the error encountered.
Enumerator | |
---|---|
non_finite_number |
Encountered a number which is NaN or Infinity. |
Definition at line 428 of file algorithm.hpp.
code jsonv::validation_error::error_code | ( | ) | const |
Get the error code.
const jsonv::path& jsonv::validation_error::path | ( | ) | const |
Get the path in the AST the error was found.
const jsonv::value& jsonv::validation_error::value | ( | ) | const |
Get the value that caused the error.