MXVM 1.8.1
Virtual Machine, Compiler, and Pascal Frontend
Loading...
Searching...
No Matches
scan::ScanExcept Class Reference

Exception thrown during scanning errors. More...

#include <scanner.hpp>

Public Member Functions

 ScanExcept ()=default
 ScanExcept (const StringType &why)
 Construct a scan exception with a reason string.
StringType why () const
 Get the error description.

Private Attributes

StringType msg

Detailed Description

Exception thrown during scanning errors.

Definition at line 80 of file scanner.hpp.

Constructor & Destructor Documentation

◆ ScanExcept() [1/2]

scan::ScanExcept::ScanExcept ( )
default

◆ ScanExcept() [2/2]

scan::ScanExcept::ScanExcept ( const StringType & why)
inline

Construct a scan exception with a reason string.

Parameters
whyDescription of the scanning error

Definition at line 87 of file scanner.hpp.

References msg, and why().

Member Function Documentation

◆ why()

StringType scan::ScanExcept::why ( ) const
inline

Get the error description.

Definition at line 89 of file scanner.hpp.

References msg.

Referenced by ScanExcept(), and mxvm::Parser::scan().

Member Data Documentation

◆ msg

StringType scan::ScanExcept::msg
private

Definition at line 92 of file scanner.hpp.

Referenced by ScanExcept(), and why().


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