Docs Menu
Docs Home
/ /
Atlas Device SDKs
/ / /

Enum ErrorCode

On this page

java.lang.Object
io.realm.mongodb.ErrorCode

This class enumerate all potential errors related to using the Object Server or synchronizing data.

Modifier and Type
Class and Description
public static
public static final
Enum Constant and Description
Modifier and Type
Method and Description
public static ErrorCode
String type,
int errorCode
)

Converts a native error to the appropriate Java equivalent

Returns the getCategory of the error.

public String

Returns the type of error.

public int

Returns the numerical value for this error code.

public String
public static ErrorCode
public static ErrorCode
  • Methods inherited from class java.lang.Object : getClass , hashCode , equals , clone , toString , notify , notifyAll , wait , wait , wait , finalize

  • Methods inherited from class java.lang.Enum : name , ordinal , toString , equals , hashCode , clone , compareTo , getDeclaringClass , valueOf , finalize

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static final ErrorCode

public static ErrorCode fromNativeError (
String type,
int errorCode
)

Converts a native error to the appropriate Java equivalent

Parameters

  • type - type of error. This is normally the C++ category.

  • errorCode - specific code within the type

Returns

the Java error representing the native error. This method will never throw, so in case a Java error does not exists. UNKNOWN will be returned.

Returns the getCategory of the error.Errors come in 2 categories: FATAL, RECOVERABLE

FATAL: The session cannot be recovered and needs to be re-created. A likely cause is that the User does not have access to this Realm. Check that the SyncConfiguration is correct.

RECOVERABLE: Temporary error. The session will automatically try to recover as soon as possible.

Returns

the severity of the error.

public String getType ()

Returns the type of error. Note that an error is only uniquely identified by the (type:value) pair.

Returns

the type of error.

public int intValue ()

Returns the numerical value for this error code. Note that an error is only uniquely identified by the (type:value) pair.

Returns

the error code as an unique int value.

public String toString ()

Overrides

toString in class Enum

public static ErrorCode valueOf (
String name
)
public static ErrorCode values ()

Back

Credentials.Provider

On this page