CoreComponents 3.0.0
A Modern C++ Toolkit
Loading...
Searching...
No Matches
TextError Class Reference

Text error More...

#include <cc/TextError>

Inheritance diagram for TextError:

Public Member Functions

 TextError (const String &text, long offset=0, const String &hint=String{})
 Create a text error.
 
String message () const override
 Generate error message for debug output.
 
String source () const
 Source the text was read from (if any)
 
String text () const
 Parsed text.
 
long offset () const
 Error offset
 
String hint () const
 Error hint
 

Detailed Description

Text error

Constructor & Destructor Documentation

◆ TextError()

TextError ( const String & text,
long offset = 0,
const String & hint = String{} )
explicit

Create a text error.

Parameters
textText in which the error occured
offsetByte offset within the text
hintError reason

Member Function Documentation

◆ message()

String message ( ) const
overridevirtual

Generate error message for debug output.

Implements Exception.

◆ source()

String source ( ) const

Source the text was read from (if any)

◆ text()

String text ( ) const

Parsed text.

◆ offset()

long offset ( ) const

Error offset

◆ hint()

String hint ( ) const

Error hint