SciLex
A header-only C++20 lexer built on REAL
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | 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.
 

Private Attributes

position where_
 Where the indentation was inconsistent.
 

Detailed Description

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

Definition at line 65 of file layout.hpp.

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.

Definition at line 70 of file layout.hpp.

Member Function Documentation

◆ where()

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

Returns the position of the offending line.

Definition at line 77 of file layout.hpp.

Member Data Documentation

◆ where_

position scilex::layout_error::where_
private

Where the indentation was inconsistent.

Definition at line 84 of file layout.hpp.


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