InvalidRequestException.java
930 Bytes
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
package com.mumfrey.webprefs.exceptions;
import com.mumfrey.webprefs.framework.RequestFailureReason;
public class InvalidRequestException extends RuntimeException
{
private static final long serialVersionUID = 1L;
private final RequestFailureReason reason;
public InvalidRequestException(RequestFailureReason reason)
{
this.reason = reason;
}
public InvalidRequestException(RequestFailureReason reason, String message)
{
super(message);
this.reason = reason;
}
public InvalidRequestException(RequestFailureReason reason, Throwable cause)
{
super(cause);
this.reason = reason;
}
public InvalidRequestException(RequestFailureReason reason, String message, Throwable cause)
{
super(message, cause);
this.reason = reason;
}
public RequestFailureReason getReason()
{
return this.reason;
}
}