com.chargebee
Class APIException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.chargebee.APIException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
InvalidRequestException, OperationFailedException, PaymentException

public class APIException
extends RuntimeException

See Also:
Serialized Form

Field Summary
 String apiErrorCode
           
 String code
          Deprecated.  
 int httpCode
          Deprecated.  
 int httpStatusCode
           
 org.json.JSONObject jsonObj
           
 String message
          Deprecated.  
 String param
           
 String type
           
 
Constructor Summary
APIException(int httpStatusCode, org.json.JSONObject jsonObj)
           
 
Method Summary
 boolean isParamErr()
           
 String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

jsonObj

public final org.json.JSONObject jsonObj

httpStatusCode

public final int httpStatusCode

type

public final String type

param

public final String param

apiErrorCode

public final String apiErrorCode

httpCode

@Deprecated
public final int httpCode
Deprecated. 
Use httpStatusCode instead.


code

@Deprecated
public final String code
Deprecated. 
Use apiErrorCode instead.


message

@Deprecated
public final String message
Deprecated. 
Use Throwable.getMessage() instead.

Constructor Detail

APIException

public APIException(int httpStatusCode,
                    org.json.JSONObject jsonObj)
             throws Exception
Throws:
Exception
Method Detail

isParamErr

public boolean isParamErr()

toString

public String toString()
Overrides:
toString in class Throwable


Copyright © 2015 ChargeBee. All Rights Reserved.