blob: be8fcd9b9dc656b95b4107ef62c69300bd7d5bef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
package bjc.utils.exceptions;
/**
* Exception thrown when an invalid token is found.
* @author Ben Culkin
*
*/
public class InvalidToken extends RuntimeException {
private static final long serialVersionUID = -5077165766341244689L;
/**
* Create an invalid token exception.
* @param tok The token that was invalid.
*/
public InvalidToken(String tok) {
super(String.format("Did not recognize token '%s' as a valid token", tok));
}
}
|