Revision 038ac9a4 src/com/rackspace/cloud/servers/api/client/CloudServersException.java
b/src/com/rackspace/cloud/servers/api/client/CloudServersException.java | ||
---|---|---|
5 | 5 |
|
6 | 6 |
/** |
7 | 7 |
* @author Mike Mayo - mike.mayo@rackspace.com - twitter.com/greenisus |
8 |
* |
|
8 |
*
|
|
9 | 9 |
*/ |
10 | 10 |
public class CloudServersException extends Exception { |
11 | 11 |
|
... | ... | |
13 | 13 |
private int code; |
14 | 14 |
private String message; |
15 | 15 |
private String details; |
16 |
|
|
16 |
|
|
17 | 17 |
/** |
18 | 18 |
* @return the code |
19 | 19 |
*/ |
20 | 20 |
public int getCode() { |
21 | 21 |
return code; |
22 | 22 |
} |
23 |
|
|
23 | 24 |
/** |
24 |
* @param code the code to set |
|
25 |
* @param code |
|
26 |
* the code to set |
|
25 | 27 |
*/ |
26 | 28 |
public void setCode(int code) { |
27 | 29 |
this.code = code; |
28 | 30 |
} |
31 |
|
|
29 | 32 |
/** |
30 | 33 |
* @return the message |
31 | 34 |
*/ |
32 | 35 |
public String getMessage() { |
33 | 36 |
return message; |
34 | 37 |
} |
38 |
|
|
35 | 39 |
/** |
36 |
* @param message the message to set |
|
40 |
* @param message |
|
41 |
* the message to set |
|
37 | 42 |
*/ |
38 | 43 |
public void setMessage(String message) { |
39 | 44 |
this.message = message; |
40 | 45 |
} |
46 |
|
|
41 | 47 |
/** |
42 | 48 |
* @return the details |
43 | 49 |
*/ |
44 | 50 |
public String getDetails() { |
45 | 51 |
return details; |
46 | 52 |
} |
53 |
|
|
47 | 54 |
/** |
48 |
* @param details the details to set |
|
55 |
* @param details |
|
56 |
* the details to set |
|
49 | 57 |
*/ |
50 | 58 |
public void setDetails(String details) { |
51 | 59 |
this.details = details; |
52 | 60 |
} |
53 |
|
|
54 |
|
|
61 |
|
|
55 | 62 |
} |
Also available in: Unified diff