org.jclouds.digitalocean.domain
Class BaseResponse

java.lang.Object
  extended by org.jclouds.digitalocean.domain.BaseResponse

public class BaseResponse
extends Object

Information of an error.

Author:
Sergi Castro, Ignasi Barrera

Nested Class Summary
static class BaseResponse.Status
           
 
Constructor Summary
BaseResponse(BaseResponse.Status status, String message, String details)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getDetails()
           
 String getMessage()
           
 BaseResponse.Status getStatus()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BaseResponse

@ConstructorProperties(value={"status","error_message","message"})
public BaseResponse(BaseResponse.Status status,
                                               @Nullable
                                               String message,
                                               @Nullable
                                               String details)
Method Detail

getStatus

public BaseResponse.Status getStatus()

getMessage

public String getMessage()

getDetails

public String getDetails()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.