SciLex
A header-only C++20 lexer built on REAL
Loading...
Searching...
No Matches
Public Member Functions | List of all members
scilex::layout_error Class Reference

Thrown when a line's indentation matches no enclosing level. More...

#include <layout.hpp>

Inheritance diagram for scilex::layout_error:
[legend]
Collaboration diagram for scilex::layout_error:
[legend]

Public Member Functions

 layout_error (const std::string &message, position where)
 Builds the error.
 
position where () const noexcept
 Returns the position of the offending line.
 

Detailed Description

Thrown when a line's indentation matches no enclosing level.

Constructor & Destructor Documentation

◆ layout_error()

scilex::layout_error::layout_error ( const std::string &  message,
position  where 
)
inline

Builds the error.

Parameters
[in]messageCause.
[in]wherePosition.

Member Function Documentation

◆ where()

position scilex::layout_error::where ( ) const
inlinenoexcept

Returns the position of the offending line.


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