|
CoreComponents 3.0.0
A Modern C++ Toolkit
|
Text error More...
#include <cc/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 | |
Text error
Create a text error.
| text | Text in which the error occured |
| offset | Byte offset within the text |
| hint | Error reason |
|
overridevirtual |
Generate error message for debug output.
Implements Exception.
| 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