|
JSON Voorhees
Killer JSON for C++
|
Thrown when an attempt to access the contents of a result was illegal.
More...
#include <jsonv/result.hpp>
Inheritance diagram for jsonv::bad_result_access:
Collaboration diagram for jsonv::bad_result_access:Public Member Functions | |
| bad_result_access (const std::string &description) noexcept | |
| Create an exception with the given description. | |
Static Public Member Functions | |
| static bad_result_access | must_be (string_view op_name, result_state expected, result_state actual) |
Create an exception with a description noting the op_name must be performed in the expected state, but the result had a different actual state. | |
| static bad_result_access | must_not_be (string_view op_name, result_state unexpected) |
| Create an exception with a description noting the op_name must not be performed in the unexpected state. | |
Thrown when an attempt to access the contents of a result was illegal.
For example, calling value when the result has result_state::error.
Definition at line 671 of file result.hpp.