sdk / com.bittiq.sdk.exception

Package com.bittiq.sdk.exception

Exceptions

BittiqApiNotAvailableException

class BittiqApiNotAvailableException : BittiqException

Thrown when the api is unavailable. This issue might be resolved a few seconds later so it's best practice to give the user the opportunity to retry the request.

BittiqBlockedAppVersionException

class BittiqBlockedAppVersionException : BittiqException

Thrown when app version is blocked. User needs to update the app for the further usage.

BittiqBlockedOSVersionException

class BittiqBlockedOSVersionException : BittiqException

Thrown when OS version isn't supported.

BittiqClientException

class BittiqClientException : BittiqException

Thrown when there's an error in the request. Inspect the error code to find out the specific cause.

BittiqException

abstract class BittiqException : Exception

This class exists to box the possible exceptions that are thrown in the SDK.

BittiqInputValidationException

class BittiqInputValidationException : BittiqException

Thrown when request parameters are invalid.

BittiqNetworkException

class BittiqNetworkException : BittiqException

Thrown when there's a problem talking to the server. This exception also happens when an in-flight request is canceled.

BittiqNoInternetException

class BittiqNoInternetException : BittiqException

Thrown when there's no internet.

BittiqParseException

class BittiqParseException : BittiqException

Thrown when some string cannot be parsed into another object. Primarily this exception is thrown when the date time string can't be parsed into a Date. This exception should never occur in production.

BittiqPrerequisiteException

class BittiqPrerequisiteException : BittiqException

Thrown when a prerequisite is not met. Utilize the documentation of the method throwing this exception to understand it's usage.

BittiqRuntimeException

class BittiqRuntimeException : BittiqException

Thrown when an unexpected error occurs creating the request or processing the response. This exception can't be resolved by the user and should be reported to Bittiq to be resolved.

Properties

ACCESS_FORBIDDEN_ERROR

const val ACCESS_FORBIDDEN_ERROR: String

ERROR_DATA_INVALID

const val ERROR_DATA_INVALID: String

REQUEST_APP_VERSION_ERROR

const val REQUEST_APP_VERSION_ERROR: String

REQUEST_OS_VERSION_ERROR

const val REQUEST_OS_VERSION_ERROR: String