Server
 
로딩중...
검색중...
일치하는것 없음
detail::parse_error 클래스 참조

exception indicating a parse error 더 자세히 ...

#include <json.hpp>

detail::parse_error에 대한 상속 다이어그램 :
detail::parse_error에 대한 협력 다이어그램:

정적 Public 멤버 함수

template<typename BasicJsonContext , enable_if_t< is_basic_json_context< BasicJsonContext >::value, int > = 0>
static parse_error create (int id_, const position_t &pos, const std::string &what_arg, BasicJsonContext context)
 create a parse error exception
 
template<typename BasicJsonContext , enable_if_t< is_basic_json_context< BasicJsonContext >::value, int > = 0>
static parse_error create (int id_, std::size_t byte_, const std::string &what_arg, BasicJsonContext context)
 

Public 속성

const std::size_t byte
 byte index of the parse error
 
- detail::exception(으)로부터 상속된 Public 속성
const int id
 the id of the exception
 

추가로 상속된 멤버들

- detail::exception(으)로부터 상속된 Public 멤버 함수
const char * what () const noexcept override
 returns the explanatory string
 
- detail::exception(으)로부터 상속된 Protected 멤버 함수
 exception (int id_, const char *what_arg)
 
- detail::exception(으)로부터 상속된 정적 Protected 멤버 함수
static std::string name (const std::string &ename, int id_)
 
static std::string diagnostics (std::nullptr_t)
 
template<typename BasicJsonType >
static std::string diagnostics (const BasicJsonType *leaf_element)
 

상세한 설명

exception indicating a parse error

참고
https://json.nlohmann.me/api/basic_json/parse_error/

멤버 함수 Documentation

◆ create()

template<typename BasicJsonContext , enable_if_t< is_basic_json_context< BasicJsonContext >::value, int > = 0>
static parse_error detail::parse_error::create ( int  id_,
const position_t pos,
const std::string &  what_arg,
BasicJsonContext  context 
)
inlinestatic

create a parse error exception

매개변수
[in]id_the id of the exception
[in]posthe position where the error occurred (or with chars_read_total=0 if the position cannot be determined)
[in]what_argthe explanatory string
반환값
parse_error object

멤버 데이터 Documentation

◆ byte

const std::size_t detail::parse_error::byte

byte index of the parse error

The byte index of the last read character in the input file.

주의
For an input with n bytes, 1 is the index of the first character and n+1 is the index of the terminating null byte or the end of file. This also holds true when reading a byte vector (CBOR or MessagePack).

이 클래스에 대한 Documentation 페이지는 다음의 파일로부터 생성되었습니다.: