Record Class DittoException.StoreExceptionReason.FailedToDecodeData
java.lang.Object
java.lang.Record
com.ditto.java.DittoException.StoreExceptionReason.FailedToDecodeData
- All Implemented Interfaces:
DittoException.StoreExceptionReason
- Enclosing interface:
DittoException.StoreExceptionReason
public static record DittoException.StoreExceptionReason.FailedToDecodeData(@Nullable Throwable error, byte[] data)
extends Record
implements DittoException.StoreExceptionReason
Data could not be decoded.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.ditto.java.DittoException.StoreExceptionReason
DittoException.StoreExceptionReason.AttachmentCopyTargetAlreadyExists, DittoException.StoreExceptionReason.AttachmentDataRetrievalError, DittoException.StoreExceptionReason.AttachmentFileCopyError, DittoException.StoreExceptionReason.AttachmentFileNotFound, DittoException.StoreExceptionReason.AttachmentFilePermissionDenied, DittoException.StoreExceptionReason.AttachmentNotFound, DittoException.StoreExceptionReason.AttachmentTokenInvalid, DittoException.StoreExceptionReason.BackendError, DittoException.StoreExceptionReason.CrdtError, DittoException.StoreExceptionReason.DocumentContentEncodingFailed, DittoException.StoreExceptionReason.DocumentNotFound, DittoException.StoreExceptionReason.FailedToCopyAttachment, DittoException.StoreExceptionReason.FailedToCreateAttachment, DittoException.StoreExceptionReason.FailedToDecodeCounter, DittoException.StoreExceptionReason.FailedToDecodeData, DittoException.StoreExceptionReason.FailedToDecodeDocument, DittoException.StoreExceptionReason.FailedToDecodeValue, DittoException.StoreExceptionReason.FailedToEncodeValue, DittoException.StoreExceptionReason.FailedToFetchAttachment, DittoException.StoreExceptionReason.FailedToGetDocumentData, DittoException.StoreExceptionReason.FailedToGetDocumentIDData, DittoException.StoreExceptionReason.FailedToInitializeDittoDirectory, DittoException.StoreExceptionReason.InvalidCrdtType, DittoException.StoreExceptionReason.InvalidDocumentStructure, DittoException.StoreExceptionReason.InvalidLiveQueryId, DittoException.StoreExceptionReason.InvalidValueForCrdt, DittoException.StoreExceptionReason.NoIdPresentInDocument, DittoException.StoreExceptionReason.NonStringKeyInDocument, DittoException.StoreExceptionReason.PersistenceDirectoryLocked, DittoException.StoreExceptionReason.QueryArgumentsInvalid, DittoException.StoreExceptionReason.QueryCompilationFailed, DittoException.StoreExceptionReason.QueryError, DittoException.StoreExceptionReason.QueryInvalid, DittoException.StoreExceptionReason.QueryNotSupported, DittoException.StoreExceptionReason.TransactionReadOnly -
Constructor Summary
ConstructorsConstructorDescriptionFailedToDecodeData(@Nullable Throwable error, byte[] data) Creates an instance of aFailedToDecodeDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]data()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable Throwableerror()Returns the value of theerrorrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FailedToDecodeData
Creates an instance of aFailedToDecodeDatarecord class.- Parameters:
error- the value for theerrorrecord componentdata- the value for thedatarecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-
data
public byte[] data()Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-