blob: 9b4691fc71c9d5290759d58eb77412d842da0ec3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
/**
*
*/
package uk.org.ury.library.exceptions;
/**
* Exception thrown when a library search is initiated
* in which the query string is null.
*
* Frontends should handle this nicely. Do NOT treat this
* as a fatal error!
*
* @author Matt Windsor
*/
public class EmptySearchException extends Exception
{
/**
* Change this! ---v
*/
private static final long serialVersionUID = -397479334359858162L;
/**
* Construct a new EmptySearchException with a
* default reason.
*/
public
EmptySearchException ()
{
super ("Query string was empty.");
}
/**
* Construct a new EmptySearchException.
*
* @param reason The explanation for the exception.
*/
public
EmptySearchException (String reason)
{
super (reason);
}
}
|