root / src / com / rackspace / cloud / servers / api / client / CloudServersException.java @ 038ac9a4
History | View | Annotate | Download (971 Bytes)
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 |
/**
|
18 |
* @return the code
|
19 |
*/
|
20 |
public int getCode() { |
21 |
return code;
|
22 |
} |
23 |
|
24 |
/**
|
25 |
* @param code
|
26 |
* the code to set
|
27 |
*/
|
28 |
public void setCode(int code) { |
29 |
this.code = code;
|
30 |
} |
31 |
|
32 |
/**
|
33 |
* @return the message
|
34 |
*/
|
35 |
public String getMessage() { |
36 |
return message;
|
37 |
} |
38 |
|
39 |
/**
|
40 |
* @param message
|
41 |
* the message to set
|
42 |
*/
|
43 |
public void setMessage(String message) { |
44 |
this.message = message;
|
45 |
} |
46 |
|
47 |
/**
|
48 |
* @return the details
|
49 |
*/
|
50 |
public String getDetails() { |
51 |
return details;
|
52 |
} |
53 |
|
54 |
/**
|
55 |
* @param details
|
56 |
* the details to set
|
57 |
*/
|
58 |
public void setDetails(String details) { |
59 |
this.details = details;
|
60 |
} |
61 |
|
62 |
} |