|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cloudera.api.ApiErrorMessage
public class ApiErrorMessage
View object for errors. We expose the error message and messages of any nested throwables.
| Constructor Summary | |
|---|---|
ApiErrorMessage()
Empty constructor, for JAX-B. |
|
ApiErrorMessage(String message)
Constructs a new ApiErrorMessage with the given error message, and no causes. |
|
ApiErrorMessage(Throwable t)
Constructs a new ApiErrorMessage that provides information about the given error. |
|
| Method Summary | |
|---|---|
List<String> |
getCauses()
|
String |
getMessage()
|
void |
setCauses(List<String> causes)
|
void |
setMessage(String message)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ApiErrorMessage()
public ApiErrorMessage(Throwable t)
t - The error being wrapped.public ApiErrorMessage(String message)
message - The error message.| Method Detail |
|---|
public String toString()
toString in class Objectpublic String getMessage()
public void setMessage(String message)
public List<String> getCauses()
public void setCauses(List<String> causes)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||