com.cloudera.api
Class ApiErrorMessage

java.lang.Object
  extended by com.cloudera.api.ApiErrorMessage

public class ApiErrorMessage
extends Object

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

ApiErrorMessage

public ApiErrorMessage()
Empty constructor, for JAX-B.


ApiErrorMessage

public ApiErrorMessage(Throwable t)
Constructs a new ApiErrorMessage that provides information about the given error. Its message and any underlying causes are saved.

Parameters:
t - The error being wrapped.

ApiErrorMessage

public ApiErrorMessage(String message)
Constructs a new ApiErrorMessage with the given error message, and no causes.

Parameters:
message - The error message.
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getMessage

public String getMessage()

setMessage

public void setMessage(String message)

getCauses

public List<String> getCauses()

setCauses

public void setCauses(List<String> causes)


Copyright © Cloudera, Inc. Released under Apache License, Version 2.0.