Skip to content
Snippets Groups Projects
Commit 4a759be5 authored by Dominic Daniel Krämer's avatar Dominic Daniel Krämer
Browse files

Merge branch 'dominicsbranch' into 'main'

smaller changes to the exceptions

See merge request !16
parents ed3039b3 74036524
Branches main
No related tags found
1 merge request!16smaller changes to the exceptions
package Exceptions; package Exceptions;
public class LexerException extends Exception { public class LexerException extends Exception {
private String message;
public LexerException(String message) { public LexerException(String message) {
super(message); super(message);
this.message = message;
}
@Override
public String toString() {
return "lexer failed: " + message;
} }
} }
package Exceptions; package Exceptions;
public class ParserException extends Exception{ public class ParserException extends Exception{
private String message;
public ParserException(String message) { public ParserException(String message) {
super(message); super(message);
this.message = message;
}
@Override
public String toString() {
return "parser failed: " + message;
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment