java.lang.Object
java.lang.Throwable
java.lang.Exception
com.google.zxing.ReaderException
com.google.zxing.ChecksumException
- All Implemented Interfaces:
Serializable
Thrown when a barcode was successfully detected and decoded, but was not returned because its checksum feature failed.
- See Also:
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final ChecksumExceptionShared instance, as the exception carries no message.Fields inherited from class ReaderException
isStackTrace, NO_TRACEModifier and TypeFieldDescriptionprotected static final booleandisable stack traces when not running inside test unitsprotected static final StackTraceElement[]empty stack trace array for disabled stack tracesConstructor Summary
ConstructorsModifierConstructorDescriptionprivateCreates the shared instance.privateChecksumException(Throwable cause) Records what went wrong.Method Summary
All MethodsModifier and TypeMethodDescriptionstatic ChecksumExceptionReturns a ChecksumException instance.static ChecksumExceptiongetChecksumInstance(Throwable cause) Returns a ChecksumException instance with the specified cause.Methods inherited from class ReaderException
fillInStackTraceMethods inherited from class Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Field Details
INSTANCE
Shared instance, as the exception carries no message.
Constructor Details
ChecksumException
private ChecksumException()Creates the shared instance.ChecksumException
Records what went wrong.- Parameters:
cause- the underlying failure
Method Details
getChecksumInstance
Returns a ChecksumException instance.- Returns:
- a ChecksumException instance
getChecksumInstance
Returns a ChecksumException instance with the specified cause.- Parameters:
cause- the underlying exception that made the checksum fail- Returns:
- a ChecksumException instance