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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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
    • Constructor Detail

      • NatsyIntegrityException

        NatsyIntegrityException(String message, Throwable cause)
    • Method Detail