btool
A parser/converter/transpiler for .bib files
ParserException Struct Reference

#include <ParserException.hpp>

+ Inheritance diagram for ParserException:
+ Collaboration diagram for ParserException:

Public Member Functions

 ParserException (AbstractParserState *state, const ParserContext &context, const std::string &message)
 
auto what () const noexcept -> const char *override
 

Public Attributes

ParserStatestate
 the state of the parser More...
 
const ParserContext context
 the context of the parser More...
 
const std::string message
 the message to throw More...
 

Detailed Description

A Parsing-Exception

Definition at line 12 of file ParserException.hpp.

Constructor & Destructor Documentation

◆ ParserException()

ParserException::ParserException ( AbstractParserState state,
const ParserContext context,
const std::string &  message 
)

Constructor.

Parameters
statethe state of the parser
contextthe context of the parser
messagethe message to throw

Definition at line 10 of file ParserException.cpp.

Member Function Documentation

◆ what()

auto ParserException::what ( ) const -> const char *
overridenoexcept

Exception-Message

Returns
the exception-message

Definition at line 26 of file ParserException.cpp.

References message.

Referenced by Parser::elementsOf().

+ Here is the caller graph for this function:

Member Data Documentation

◆ context

const ParserContext ParserException::context

the context of the parser

Definition at line 14 of file ParserException.hpp.

◆ message

const std::string ParserException::message

the message to throw

Definition at line 15 of file ParserException.hpp.

Referenced by what().

◆ state

ParserState* ParserException::state

the state of the parser

Definition at line 13 of file ParserException.hpp.

Referenced by Parser::elementsOf().


The documentation for this struct was generated from the following files: