ParsingError.hpp

This File On Github
Ask A Question

API: latest
module: oatpp
#include "oatpp/core/parser/ParsingError.hpp"

ParsingError

Thrown when parsing error occurred and ParsingCaret object is not accessible for user. If parsing was made via oatpp::parser::ParsingCaret and ParsingCaret is accessible for user then do not throw this error.- User should read error from ParsingCaret::getError()

namespace oatpp { namespace parser { 
  class ParsingError : public std::runtime_error {}
}}

Methods

Return Type Name Summary
[none] ParsingError Constructor
oatpp::String getMessage get error message
v_int32 getCode get error code
v_int32 getPosition get parsing position of the error

ParsingError::ParsingError

Constructor

  • @param message
  • @param position

ParsingError(const oatpp::String &message, v_int32 code, v_int32 position)

ParsingError::getMessage

get error message

  • @return

oatpp::String getMessage() const

ParsingError::getCode

get error code

  • @return

v_int32 getCode() const

ParsingError::getPosition

get parsing position of the error

  • @return

v_int32 getPosition() const