FormatException (ZXing 3.5.2 API)
Description: declaration: package: com.google.zxing, class: FormatException

Package com.google.zxing

# Class FormatException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.google.zxing.ReaderException
com.google.zxing.FormatException

All Implemented Interfaces:
  `Serializable`

public final class FormatException extends ReaderException
Thrown when a barcode was successfully detected, but some aspect of the content did not conform to the barcode's format rules. This could have been due to a mis-detection.

Author:
  Sean Owen
See Also:
  - Serialized Form

- ## Field Summary

  ### Fields inherited from class com.google.zxing.ReaderException

  `isStackTrace, NO_TRACE`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static FormatException`
  `getFormatInstance()`
  `static FormatException`
  `getFormatInstance(Throwable cause)`

  ### Methods inherited from class com.google.zxing.ReaderException

  `fillInStackTrace, setStackTrace`

  ### 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`

- ## Method Details

  - ### getFormatInstance

    public static FormatException getFormatInstance()

  - ### getFormatInstance

    public static FormatException getFormatInstance(Throwable cause)