diff options
Diffstat (limited to 'src/com/craftinginterpreters/lox/RuntimeError.java')
-rw-r--r-- | src/com/craftinginterpreters/lox/RuntimeError.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/com/craftinginterpreters/lox/RuntimeError.java b/src/com/craftinginterpreters/lox/RuntimeError.java new file mode 100644 index 0000000..017865b --- /dev/null +++ b/src/com/craftinginterpreters/lox/RuntimeError.java @@ -0,0 +1,10 @@ +package com.craftinginterpreters.lox; + +class RuntimeError extends RuntimeException { + final Token token; + + RuntimeError(Token token, String message) { + super(message); + this.token = token; + } +} |