Package com.google.zxing
Class ReaderException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.google.zxing.ReaderException
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- ChecksumException,- FormatException,- NotFoundException
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.
- Author:
- Sean Owen
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected static booleanprotected static final StackTraceElement[]
- 
Method SummaryModifier and TypeMethodDescriptionfinal Throwablestatic voidsetStackTrace(boolean enabled) For testing only.Methods inherited from class java.lang.ThrowableaddSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Field Details- 
isStackTraceprotected static boolean isStackTrace
- 
NO_TRACE
 
- 
- 
Method Details- 
fillInStackTrace- Overrides:
- fillInStackTracein class- Throwable
 
- 
setStackTracepublic static void setStackTrace(boolean enabled) For testing only. Controls whether library exception classes include stack traces or not. Defaults to false, unless running in the project's unit testing harness.- Parameters:
- enabled- if true, enables stack traces in library exception classes
- Since:
- 3.5.0
 
 
-