Show / Hide Table of Contents

    Enum ErrorCode

    Error code enumeration, indicating the type of the session error.

    Namespace: Realms.Sync.Exceptions
    Assembly: Realm.dll
    Syntax
    public enum ErrorCode

    Fields

    Name Description
    AccessDenied

    The path is invalid or current user has no access.

    AccessTokenExpired

    Access token has already expired.

    AmbiguousPermissionOfferToken

    The token used on the permission request does match more than a single permission offer.

    BadChangeset

    The changeset is invalid.

    BadClientFile

    The client file is invalid.

    BadClientFileIdentifier

    The client file identifier is invalid.

    BadClientVersion

    The client version is invalid.

    BadServerFileIdentifier

    The server file identifier is invalid.

    BadServerVersion

    The server version is invalid.

    BadUserAuthentication

    Failed to authenticate user.

    DisabledSession

    The session has been disabled.

    DivergingHistories

    Histories have diverged and cannot be merged.

    ExistingAccount

    The account cannot be registered as it exists already.

    ExpiredPermissionOffer

    The permission offer is expired.

    ExpiredRefreshToken

    The refresh token is expired.

    FileMayNotBeShared

    The Realm file at the specified path is not available for shared access.

    IllegalRealmPath

    Path to Realm is invalid.

    InvalidCredentials

    The provided credentials are invalid.

    InvalidHost

    The server is not authoritative for this URL.

    InvalidParameters

    Your request parameters did not validate.

    InvalidSchemaChange

    The client attempted to upload an invalid schema change - either an additive schema change when developer mode is off or a destructive schema change.

    MissingParameters

    Your request did not validate because of missing parameters.

    NoSuchRealm

    Path points to non-existing Realm.

    OtherSessionError

    Other session level error has occurred.

    PermissionDenied

    Permission to Realm has been denied.

    SessionClosed

    Session has been closed (no error).

    TooManySessions

    The server has received too many sessions from this client. This is typically a transient error but can also indicate that the client has too many Realms open at the same time.

    Unknown

    Unrecognized error code. It usually indicates incompatibility between the authentication server and client SDK versions.

    UnknownAccount

    The account does not exist.

    UserMismatch

    The user for this session doesn't match the user who originally created the file. This can happen if you explicitly specify the Realm file path in the configuration and you open the Realm first with user A, then with user B without changing the on-disk path.

    See Also
    SessionException
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Realm
    Generated by DocFX