blob: c203f91b4eba4d5faeb7159d8e0b18a99385af7c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
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));
}
}
|