Package com.olo.olopay.exceptions

Exceptions that can be thrown while making Olo Pay API calls

Types

ApiConnectionException
Link copied to clipboard
class ApiConnectionException : OloPayException

An Exception that represents an inability to connect to Olo Pay servers. This could happen if the device has a poor/unstable network connection

ApiException
Link copied to clipboard
class ApiException : OloPayException

An Exception that represents an internal problem with Olo Pay servers

CardException
Link copied to clipboard
class CardException : OloPayException

An Exception indicating that there is a problem with the card used for the request. Card errors are the most common type of error that need to be handled. They occur when the user enters a card that can't be charged for some reason.

GooglePayException
Link copied to clipboard
class GooglePayException(throwable: Throwable, errorType: GooglePayErrorType) : OloPayException

An exception having to do with Google Pay payments

InvalidRequestException
Link copied to clipboard
class InvalidRequestException : OloPayException

An exception indicating invalid parameters were used in the request

OloPayException
Link copied to clipboard
open class OloPayException : Exception

Base Exception class for all exceptions

RateLimitException
Link copied to clipboard
class RateLimitException : OloPayException

An exception indicating the rate limit has been exceeded and you need to wait to try again