Package eu.vstoyanov.natsy.exception
Class NatsyIntegrityException
-
- All Implemented Interfaces:
-
java.io.Serializable
public final class NatsyIntegrityException extends NatsyException
What came back is not what was stored.
The object store checks every download against the metadata it recorded on upload - the chunk count, the total size, and the SHA-256 digest. A mismatch means the bytes that arrived are not the bytes that were put: a truncated transfer, a partially expired stream, corruption at rest.
Retrying the read is reasonable. Treating the payload as valid is not, which is why this is a failure rather than something a caller has to remember to check.
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringmessageprivate final Throwablecauseprivate final StringlocalizedMessageprivate final Array<Throwable>suppressedprivate Array<StackTraceElement>stackTrace
-
Constructor Summary
Constructors Constructor Description NatsyIntegrityException(String message, Throwable cause)
-
Method Summary
Modifier and Type Method Description -
Methods inherited from class kotlin.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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
-
-