com.app55.error
Class ApiException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.app55.error.ApiException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
InvalidSignatureException, RequestException

public class ApiException
extends RuntimeException

See Also:
Serialized Form

Method Summary
static ApiException createException(Map<String,Object> error)
           
static ApiException createException(String message, Long code)
           
 Map<String,Object> getBody()
           
 Long getCode()
           
 String getMessage()
           
 String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

toString

public String toString()
Overrides:
toString in class Throwable

createException

public static ApiException createException(Map<String,Object> error)

createException

public static ApiException createException(String message,
                                           Long code)

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable

getCode

public Long getCode()

getBody

public Map<String,Object> getBody()


Copyright © 2013. All Rights Reserved.