Base Class for all BadScript Parser Exceptions.
More...
|
| BadParseException (string message, BadSourcePosition position) |
| Constructor for the BadParseException.
|
|
| BadParseException (string message, BadSourcePosition position, Exception inner) |
| Constructor for the BadParseException.
|
|
| BadScriptException (string message) |
|
| BadScriptException (string message, string originalMessage) |
|
| BadScriptException (string message, string originalMessage, Exception inner) |
|
| BadScriptException (string message, string originalMessage, BadSourcePosition position) |
|
| BadScriptException (string message, string originalMessage, BadSourcePosition position, Exception inner) |
|
|
static string | GetMessage (string message, BadSourcePosition position) |
| Returns a string that represents the error message with the source position.
|
|
Base Class for all BadScript Parser Exceptions.
Definition at line 6 of file BadParseException.cs.
◆ BadParseException() [1/2]
BadScript2.Common.BadParseException.BadParseException |
( |
string |
message, |
|
|
BadSourcePosition |
position |
|
) |
| |
|
protected |
Constructor for the BadParseException.
- Parameters
-
message | The Exception Message |
position | The source position of where the error occurred |
Definition at line 13 of file BadParseException.cs.
14 message,
15 position
16 ) { }
static string GetMessage(string message, BadSourcePosition position)
Returns a string that represents the error message with the source position.
◆ BadParseException() [2/2]
BadScript2.Common.BadParseException.BadParseException |
( |
string |
message, |
|
|
BadSourcePosition |
position, |
|
|
Exception |
inner |
|
) |
| |
|
protected |
Constructor for the BadParseException.
- Parameters
-
message | The Exception Message |
position | The source position of where the error occurred |
inner | The Inner Exception |
Definition at line 25 of file BadParseException.cs.
25 :
27 message,
28 position,
29 inner
30 ) { }
◆ GetMessage()
static string BadScript2.Common.BadParseException.GetMessage |
( |
string |
message, |
|
|
BadSourcePosition |
position |
|
) |
| |
|
staticprivate |
Returns a string that represents the error message with the source position.
- Parameters
-
message | The message |
position | The source position |
- Returns
- String representation
Definition at line 39 of file BadParseException.cs.
40 {
41 return $"{message} at {position.GetExcerpt(10, 10)} in {position.GetPositionInfo()}";
42 }
The documentation for this class was generated from the following file: