You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
480 B
32 lines
480 B
package net.mightypork.rcalc;
|
|
|
|
|
|
/**
|
|
* Error thrown when a syntax error is encountered while parsing an expression
|
|
*
|
|
* @author Ondrej Hruska
|
|
*/
|
|
public class ParseError extends RuntimeException {
|
|
|
|
/**
|
|
* Create new parse error
|
|
*
|
|
* @param message error message
|
|
*/
|
|
public ParseError(String message) {
|
|
|
|
super(message);
|
|
}
|
|
|
|
|
|
/**
|
|
* Wrapper another exception in a parse error
|
|
*
|
|
* @param e other exception
|
|
*/
|
|
public ParseError(Exception e) {
|
|
|
|
super(e);
|
|
}
|
|
|
|
}
|
|
|