blob: adff78cf15e9f617efe7e68bd123c623c6ffbe6d (
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
|
/**
*
*/
package uk.org.ury.backend.server.exceptions;
/**
* Generic exception thrown when a server request handler fails to handle a
* request.
*
* @author Matt Windsor
*/
public class HandleFailureException extends HandlingException {
/**
* Change this! ---v
*/
private static final long serialVersionUID = -397479334359858162L;
/**
* Constructs a new HandleFailureException with a default reason.
*/
public HandleFailureException() {
super("Server request handler failed to handle the request.");
}
/**
* Constructs a new HandleFailureException.
*
* @param reason
* The explanation for the exception.
*/
public HandleFailureException(String reason) {
super(reason);
}
/**
* Constructs a new HandleFailureException with a chained exception.
*
* @param cause
* The chained exception.
*/
public HandleFailureException(Throwable cause) {
super("Request handler failed: " + cause.getMessage(), cause);
}
}
|