root / src / com / rackspace / cloud / servers / api / client / CloudServersException.java @ 378fe36a
History | View | Annotate | Download (1.1 kB)
1 |
/**
|
---|---|
2 |
*
|
3 |
*/
|
4 |
package com.rackspace.cloud.servers.api.client; |
5 |
|
6 |
/**
|
7 |
* @author Mike Mayo - mike.mayo@rackspace.com - twitter.com/greenisus
|
8 |
*
|
9 |
*/
|
10 |
public class CloudServersException extends Exception { |
11 |
|
12 |
private static final long serialVersionUID = -4788874449651935081L; |
13 |
private int code; |
14 |
private String message; |
15 |
private String details; |
16 |
|
17 |
public CloudServersException() {
|
18 |
|
19 |
} |
20 |
|
21 |
|
22 |
|
23 |
public CloudServersException(int code, String message, String details) { |
24 |
this.code = code;
|
25 |
this.message = message;
|
26 |
this.details = details;
|
27 |
} |
28 |
|
29 |
|
30 |
|
31 |
/**
|
32 |
* @return the code
|
33 |
*/
|
34 |
public int getCode() { |
35 |
return code;
|
36 |
} |
37 |
|
38 |
/**
|
39 |
* @param code
|
40 |
* the code to set
|
41 |
*/
|
42 |
public void setCode(int code) { |
43 |
this.code = code;
|
44 |
} |
45 |
|
46 |
/**
|
47 |
* @return the message
|
48 |
*/
|
49 |
public String getMessage() { |
50 |
return message;
|
51 |
} |
52 |
|
53 |
/**
|
54 |
* @param message
|
55 |
* the message to set
|
56 |
*/
|
57 |
public void setMessage(String message) { |
58 |
this.message = message;
|
59 |
} |
60 |
|
61 |
/**
|
62 |
* @return the details
|
63 |
*/
|
64 |
public String getDetails() { |
65 |
return details;
|
66 |
} |
67 |
|
68 |
/**
|
69 |
* @param details
|
70 |
* the details to set
|
71 |
*/
|
72 |
public void setDetails(String details) { |
73 |
this.details = details;
|
74 |
} |
75 |
|
76 |
} |