diff options
author | Maël Gassmann <mael.gassmann@students.bfh.ch> | 2021-06-11 20:55:12 +0200 |
---|---|---|
committer | Maël Gassmann <mael.gassmann@students.bfh.ch> | 2021-06-11 20:55:12 +0200 |
commit | fed70f3ac817ed4943a230cb901fcd65dc6fdd0c (patch) | |
tree | aea4de81656c677d33e4af6eb11375303d1dfdda /calculator-java/src/main/java/ch/bfh/parser/ParserException.java | |
parent | 3baa44f1c8459713a96f4db994ee9905cc4e8df1 (diff) |
[~] First totaly functional Calculator, reorganised the files, verified and added error messages
Diffstat (limited to 'calculator-java/src/main/java/ch/bfh/parser/ParserException.java')
-rw-r--r-- | calculator-java/src/main/java/ch/bfh/parser/ParserException.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/calculator-java/src/main/java/ch/bfh/parser/ParserException.java b/calculator-java/src/main/java/ch/bfh/parser/ParserException.java new file mode 100644 index 0000000..a85e3b2 --- /dev/null +++ b/calculator-java/src/main/java/ch/bfh/parser/ParserException.java @@ -0,0 +1,8 @@ +package ch.bfh.parser; + +import ch.bfh.lexer.Token; + +public class ParserException extends RuntimeException { + public ParserException(String s) { super(s); } + public ParserException(Token token, String s) { super("Last read token: '"+token.str+"', "+s); } +}
\ No newline at end of file |