Package-level declarations

Types

Link copied to clipboard
abstract class BaseDataProvider

A base class of which all our data providers will inherit, will contain some generic handling and helpers that can be used by any data provider.

Link copied to clipboard
Link copied to clipboard
sealed class DataProviderResponse<T>

A standard Response/result type for requests going through Sensibill Data Providers. Except for some special situations, most data provider return types will be of this type.

Link copied to clipboard
Link copied to clipboard

Helper class to provide standard interpretation and handling of a data provider API call

Link copied to clipboard

Something in the request itself was invalid, this is likely an SDK problem, please reach out to client success

Link copied to clipboard

Unauthorized - please check to make sure you're providing a valid access token when requested with the com.getsensibill.tokenprovider.TokenProvider that you're providing to the SDK

Link copied to clipboard

Forbidden - in our APIs this usually means you're trying to access something that you're not configured to use. Please reach out to our client success to find a resolution

Link copied to clipboard

The requested entity was not found on the server

Link copied to clipboard

Something went wrong on the server, could be worth retrying the request

Link copied to clipboard
Link copied to clipboard

The request succeeded, but the response wasn't the object we were expecting

Link copied to clipboard

The request succeeded, but we were expecting a response body and didn't get one

Link copied to clipboard
abstract class RequestError : Exception

The Base error type that can be returned by a Sensibill DataProvider request

Link copied to clipboard

The request timed out

Link copied to clipboard

The request succeeded, but the response wasn't the object we were expecting

Link copied to clipboard

Unknown -- Otherwise uncaught exception

Link copied to clipboard
class UnknownExternalError(extraInformation: String? = null, message: String = ErrorMessages.MESSAGE_EMPTY, cause: Throwable? = null, val response: Response<*>? = null) : RequestError

An alternative to UnknownError which can be created outside of this module

Functions

Link copied to clipboard
Link copied to clipboard