InvalidResponseException.java
963 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 InvalidResponseException extends RuntimeException
{
private static final long serialVersionUID = 1L;
private final RequestFailureReason response;
public InvalidResponseException(RequestFailureReason response)
{
this.response = response;
}
public InvalidResponseException(RequestFailureReason response, String message)
{
super(message);
this.response = response;
}
public InvalidResponseException(RequestFailureReason response, Throwable cause)
{
super(cause);
this.response = response;
}
public InvalidResponseException(RequestFailureReason response, String message, Throwable cause)
{
super(message, cause);
this.response = response;
}
public RequestFailureReason getReason()
{
return this.response;
}
}