AsmGrader 0.0.0
Loading...
Searching...
No Matches
asmgrader::inspection::ParsingError Class Reference

Bad or invalid parse exception type. May indicate an implementation bug, or just an invalid expression. More...

#include <expression_inspection.hpp>

Inheritance diagram for asmgrader::inspection::ParsingError:
[legend]

Public Member Functions

 ParsingError (std::string msg)
 
 ParsingError (std::string msg, std::string_view stream_state)
 
 ParsingError (std::string msg, std::string_view stream_state, Token::Kind token_kind)
 
const char * what () const noexcept override
 
constexpr const std::string & msg () const noexcept
 
constexpr const std::optional< std::string > & stream_state () const noexcept
 
constexpr const std::optional< Token::Kind > & token_kind () const noexcept
 
std::string pretty () const
 Return a human-readable "pretty" stringified version of the exception.
 

Detailed Description

Bad or invalid parse exception type. May indicate an implementation bug, or just an invalid expression.

Constructor & Destructor Documentation

◆ ParsingError() [1/3]

asmgrader::inspection::ParsingError::ParsingError ( std::string msg)
inlineexplicit

◆ ParsingError() [2/3]

asmgrader::inspection::ParsingError::ParsingError ( std::string msg,
std::string_view stream_state )
inline

◆ ParsingError() [3/3]

asmgrader::inspection::ParsingError::ParsingError ( std::string msg,
std::string_view stream_state,
Token::Kind token_kind )
inline

Member Function Documentation

◆ msg()

const std::string & asmgrader::inspection::ParsingError::msg ( ) const
inlineconstexprnoexcept

◆ pretty()

std::string asmgrader::inspection::ParsingError::pretty ( ) const
inline

Return a human-readable "pretty" stringified version of the exception.

◆ stream_state()

const std::optional< std::string > & asmgrader::inspection::ParsingError::stream_state ( ) const
inlineconstexprnoexcept

◆ token_kind()

const std::optional< Token::Kind > & asmgrader::inspection::ParsingError::token_kind ( ) const
inlineconstexprnoexcept

◆ what()

const char * asmgrader::inspection::ParsingError::what ( ) const
inlineoverridenoexcept

The documentation for this class was generated from the following file: