blob: 189c7f5f18d85c4476a5401653eea859b3ad97aa (
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
|
/**
*
*/
package uk.org.ury.server.exceptions;
/**
* Exception thrown when the server meets a malformed request, or
* part of one.
*
* @author Matt Windsor
*/
public class BadRequestException extends HandlingException
{
/**
*
*/
private static final long serialVersionUID = 1825771401085225357L;
/**
* Construct a new BadRequestException with a default reason.
*/
public
BadRequestException ()
{
super ("Bad request.");
}
/**
* Construct a new HandlerNotFoundException with a chained
* exception.
*
* @param cause The exception that this new exception is to
* wrap.
*/
public
BadRequestException (Throwable cause)
{
super ("Bad request. ("
+ cause.getMessage () + ")", cause);
}
}
|