Package money.zumo.zumokit.exceptions
Class ZumoKitException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- money.zumo.zumokit.exceptions.ZumoKitException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
APIConnectionException
,APIException
,AuthenticationException
,InvalidArgumentException
,InvalidRequestException
,RateLimitException
,WalletException
public class ZumoKitException extends java.lang.RuntimeException
A base class for ZumoKit-related exceptions.RuntimeException extension with error type and error code properties. Refer to Handling Errors guide for details on handling errors.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ZumoKitException(java.lang.String errorType, java.lang.String errorCode, java.lang.String errorMessage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getErrorCode()
In case an error could be handled programmatically in addition to error type error code is returned.java.lang.String
getErrorType()
Error type, such as api_connection_error, api_error, wallet_error etc.
-
-
-
Method Detail
-
getErrorType
public java.lang.String getErrorType()
Error type, such as api_connection_error, api_error, wallet_error etc.- See Also:
ZumoKitErrorType
-
getErrorCode
public java.lang.String getErrorCode()
In case an error could be handled programmatically in addition to error type error code is returned.- See Also:
ZumoKitErrorCode
-
-