All Implemented Interfaces:
Serializable

public final class ChecksumExceptionextends ReaderException
Thrown when a barcode was successfully detected and decoded, but was not returned because its checksum feature failed.
See Also:
  • Field Details

    • INSTANCE

      private static final ChecksumException INSTANCE
      Shared instance, as the exception carries no message.
  • Constructor Details

    • ChecksumException

      private ChecksumException()
      Creates the shared instance.
    • ChecksumException

      private ChecksumException(Throwable cause)
      Records what went wrong.
      Parameters:
      cause - the underlying failure
  • Method Details

    • getChecksumInstance

      public static ChecksumException getChecksumInstance()
      Returns a ChecksumException instance.
      Returns:
      a ChecksumException instance
    • getChecksumInstance

      public static ChecksumException getChecksumInstance(Throwable cause)
      Returns a ChecksumException instance with the specified cause.
      Parameters:
      cause - the underlying exception that made the checksum fail
      Returns:
      a ChecksumException instance