Package io.realm.kotlin.mongodb.exceptions

Types

AppException
Link copied to clipboard
open class AppException

Top level class for all exceptions that are specific to using App Services and Device Sync.

AuthException
Link copied to clipboard
open class AuthException : ServiceException

This exception is considered the top-level or "catch-all" for problems related to user account actions. The exact reason for the error can be found in Throwable.message.

BadFlexibleSyncQueryException
Link copied to clipboard
class BadFlexibleSyncQueryException : SyncException

Thrown when the server does not support one or more of the queries defined in the io.realm.kotlin.mongodb.sync.SubscriptionSet.

BadRequestException
Link copied to clipboard
class BadRequestException : ServiceException

This exception is thrown when parameters sent to Atlas App Services are considered malformed. This can happen if e.g. tokens do not have the required length or contain garbage data. The exact reason will be in the error message.

ClientResetRequiredException
Link copied to clipboard
class ClientResetRequiredException(appPointer: <ERROR CLASS>, error: <ERROR CLASS>) : Throwable

Class encapsulating information needed for handling a Client Reset event.

CompensatingWriteException
Link copied to clipboard
class CompensatingWriteException : SyncException

Thrown when the server undoes one or more client writes. Details on undone writes can be found in writes.

ConnectionException
Link copied to clipboard
open class ConnectionException : ServiceException

Exception indicating that something went wrong with the underlying HTTP request to App Services. The exact cause is in the exception message.

CredentialsCannotBeLinkedException
Link copied to clipboard
class CredentialsCannotBeLinkedException : ServiceException

Thrown when attempting to link credentials that are not supported.

DownloadingRealmTimeOutException
Link copied to clipboard
class DownloadingRealmTimeOutException

Thrown when opening a Realm and it didn't finish download server data in the allocated timeframe.

FunctionExecutionException
Link copied to clipboard
class FunctionExecutionException : ServiceException

Exception indicating that an Atlas Function failed to execute. The exact reason for the error can be found in Throwable.message.

InvalidCredentialsException
Link copied to clipboard
class InvalidCredentialsException : AuthException

Thrown when credentials were rejected by the server when trying to log in. Only some authentication providers will return this error:

ServiceException
Link copied to clipboard
open class ServiceException : AppException

This exception is considered the top-level or "catch-all" for problems related to HTTP requests made towards App Services. This covers both HTTP transport problems, problems passing JSON or the server considering the request invalid, for whatever reason.

SyncException
Link copied to clipboard
open class SyncException : AppException

This exception is considered the top-level exception or general "catch-all" for problems related to using Device Sync.

UnrecoverableSyncException
Link copied to clipboard
class UnrecoverableSyncException : SyncException

Thrown when something has gone wrong with Device Sync in a way that is not recoverable.

UserAlreadyConfirmedException
Link copied to clipboard
class UserAlreadyConfirmedException : AuthException

Thrown when trying to confirm a user that was already confirmed on the server.

UserAlreadyExistsException
Link copied to clipboard
class UserAlreadyExistsException : AuthException

Thrown when trying to register a new user with email and password, and the user already exists.

UserNotFoundException
Link copied to clipboard
class UserNotFoundException : AuthException

Thrown when using an API that also require some kind of user identifier, but the server is not able to find the user.

WrongSyncTypeException
Link copied to clipboard
class WrongSyncTypeException : SyncException

Thrown when the type of sync used by the server does not match the one used by the client, i.e. the server and client disagrees whether to use Partition-based or Flexible Sync.