JSON Voorhees
Killer JSON for C++
Loading...
Searching...
No Matches
jsonv::validation_error Class Reference

Error thrown when an unrepresentable value is encountered in a JSON AST. More...

#include <jsonv/algorithm.hpp>

+ Inheritance diagram for jsonv::validation_error:
+ Collaboration diagram for jsonv::validation_error:

Public Types

enum class  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.
 
const jsonv::pathpath () const
 Get the path in the AST the error was found.
 
const jsonv::valuevalue () const
 Get the value that caused the error.
 

Detailed Description

Error thrown when an unrepresentable value is encountered in a JSON AST.

See also
validate

Definition at line 421 of file algorithm.hpp.

Member Enumeration Documentation

◆ code

Special code for describing the error encountered.

Enumerator
non_finite_number 

Encountered a number which is NaN or Infinity.

Definition at line 426 of file algorithm.hpp.


The documentation for this class was generated from the following file: