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

smaller changes to the exceptions

parent 04f30b3e
No related branches found
No related tags found
1 merge request!16smaller changes to the exceptions
package Exceptions;
public class LexerException extends Exception {
private String message;
public LexerException(String message) {
super(message);
this.message = message;
}
@Override
public String toString() {
return "lexer failed: " + message;
}
}
package Exceptions;
public class ParserException extends Exception{
private String message;
public ParserException(String 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