java.lang.Object
java.lang.Throwable
java.lang.Exception
com.google.zxing.ReaderException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ChecksumException, FormatException
The general exception class throw when something goes wrong during decoding of a barcode. This includes, but is not limited to, failing checksums / error correction algorithms, being unable to locate finder timing patterns, and so on.
- See Also:
Field Summary
FieldsModifier 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
ConstructorsConstructorDescriptionFor subclasses only.ReaderException(Throwable cause) Creates an exception that wraps the failure which caused it.Method Summary
All MethodsMethods inherited from class Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Field Details
isStackTrace
protected static final boolean isStackTracedisable stack traces when not running inside test unitsNO_TRACE
empty stack trace array for disabled stack traces
Constructor Details
ReaderException
ReaderException()For subclasses only.ReaderException
ReaderException(Throwable cause) Creates an exception that wraps the failure which caused it.- Parameters:
cause- the failure that triggered this exception
Method Details
fillInStackTrace
Disable stack trace capture for performance.- Overrides:
fillInStackTracein classThrowable