Class ReaderException

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    ChecksumException, FormatException, NotFoundException

    public abstract class ReaderException
    extends java.lang.Exception
    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:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static boolean isStackTrace  
      protected static java.lang.StackTraceElement[] NO_TRACE  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Throwable fillInStackTrace()  
      static void setStackTrace​(boolean enabled)
      For testing only.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • isStackTrace

        protected static boolean isStackTrace
      • NO_TRACE

        protected static final java.lang.StackTraceElement[] NO_TRACE
    • Constructor Detail

      • ReaderException

        ReaderException()
      • ReaderException

        ReaderException​(java.lang.Throwable cause)
    • Method Detail

      • fillInStackTrace

        public final java.lang.Throwable fillInStackTrace()
        Overrides:
        fillInStackTrace in class java.lang.Throwable
      • setStackTrace

        public 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