djson v3.1.3
JSON parser
 
Loading...
Searching...
No Matches
error.hpp
Go to the documentation of this file.
1#pragma once
2#include <djson/src_loc.hpp>
3#include <string>
4
5namespace dj {
32
34auto to_string_view(Error::Type type) -> std::string_view;
35
37auto to_string(Error const& error) -> std::string;
38} // namespace dj
Definition error.hpp:5
auto to_string(Error const &error) -> std::string
Obtain print-friendly error string.
auto to_string_view(Error::Type type) -> std::string_view
Obtain stringified Error Type.
Various kinds of parse and IO errors. Contains contextual token and source location if parse error.
Definition error.hpp:8
std::string token
Definition error.hpp:29
Type type
Definition error.hpp:28
SrcLoc src_loc
Definition error.hpp:30
Type
Definition error.hpp:9
Source location.
Definition src_loc.hpp:6