diff options
Diffstat (limited to 'src/runMain/kotlin/exceptions/SyntaxError.kt')
-rw-r--r-- | src/runMain/kotlin/exceptions/SyntaxError.kt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/runMain/kotlin/exceptions/SyntaxError.kt b/src/runMain/kotlin/exceptions/SyntaxError.kt new file mode 100644 index 0000000..3fc2a69 --- /dev/null +++ b/src/runMain/kotlin/exceptions/SyntaxError.kt @@ -0,0 +1,6 @@ +package exceptions + +/** + * Gets thrown if the syntax is wrong + */ +class SyntaxError(context: String = "") : Exception("Syntax error: $context")
\ No newline at end of file |