-
- All Implemented Interfaces:
-
java.io.Serializable
public class DittoError extends Throwable
All errors that are thrown by the Ditto SDK are wrapped as a DittoError. This type wraps multiple different types of error that each have an associated reason.
You can access more specific information about an error by switching over the error's
reasonvalue. A human-readable version of the error is available via thelocalizedMessageproperty of the error'sreason.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classDittoError.Companionpublic final classDittoError.ActivationErrorpublic final classDittoError.AuthenticationErrorpublic final classDittoError.BusErrorpublic final classDittoError.FatalErrorRepresents a fatal error that the Ditto instance cannot recover from. Should your app encounter one, the instance should be closed and a new instance created.
public final classDittoError.FilesystemErrorAn error occurred accessing the filesystem.
public final classDittoError.InternalErrorErrors related to internal ditto core native communication.
public final classDittoError.LockedWorkingDirectoryErrorOutstanding usage of ditto's working directory detected when trying to instantiate a new Ditto, which would have led to concurrent usage of the backing database files.
public final classDittoError.PresenceErrorErrors transforming Ditto mesh presence data to or from JSON encoding.
public final classDittoError.StoreErrorpublic final classDittoError.TransportErrorpublic final classDittoError.UnknownErrorSome not-yet-categorized error occurred.
public final classDittoError.ValidationErrorpublic classDittoError.ActivationErrorReasonThe possible underlying reasons an ActivationError occurs.
public classDittoError.AuthenticationErrorReasonThe possible underlying reasons an AuthenticationError error occurs.
public classDittoError.BusErrorReasonThe possible underlying reasons a BusError error occurs.
public classDittoError.InternalErrorReasonThe possible underlying reasons a InternalError error occurs.
public classDittoError.PresenceErrorReasonThe possible underlying reasons a PresenceError occurs.
public classDittoError.StoreErrorReasonThe possible underlying reasons a StoreError occurs.
public classDittoError.TransportErrorReasonThe possible underlying reasons a TransportError error occurs.
public classDittoError.ValidationErrorReasonErrors interacting with DittoSmallPeerInfo.
-
Method Summary
Modifier and Type Method Description StringgetMessage()ThrowablegetCause()StringgetLocalizedMessage()A String representation of the error suitable for display. -
Methods inherited from class live.ditto.DittoError
addSuppressed, fillInStackTrace, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getMessage
String getMessage()
-
getLocalizedMessage
String getLocalizedMessage()
A String representation of the error suitable for display.
-
-
-
-