DecoderException

com.hsm.barcode

## Class DecoderException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - com.hsm.barcode.DecoderException

- All Implemented Interfaces:
    java.io.Serializable

      public class DecoderException
      extends java.lang.Exception

  Decode Exception error code.
  See Also:
    Serialized Form

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `DecoderException.ResultID` Exception result codes for all functions.

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `DecoderException(int code, java.lang.String message)` Exception thrown by the API when an error occurs.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getErrorCode()` Returns the error code set when an exception occurs.

    - ### Methods inherited from class java.lang.Throwable

      `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### DecoderException

          public DecoderException(int code,
                                  java.lang.String message)

      Exception thrown by the API when an error occurs.
      Parameters:
        `code` - - integer value of the error code (ResultID)
        `message` - - message associated with the error code

  - ### Method Detail

    - #### getErrorCode

          public int getErrorCode()

      Returns the error code set when an exception occurs.
      Returns:
        integer value of error code (ResultID)