Class AnjayFirmwareUpdateException

  • All Implemented Interfaces:
    java.io.Serializable

    public class AnjayFirmwareUpdateException
    extends java.lang.RuntimeException
    Exception which may be thrown from some methods from AnjayFirmwareUpdateHandlers.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      AnjayFirmwareUpdateException​(int errorCode, java.lang.String message)
      Construct new AnjayFirmwareUpdateException.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int errorCode()
      Retrieves the error code corresponding to a return value of a C function.
      • 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

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

      • NOT_ENOUGH_SPACE

        public static final int NOT_ENOUGH_SPACE
      • OUT_OF_MEMORY

        public static final int OUT_OF_MEMORY
      • INTEGRITY_FAILURE

        public static final int INTEGRITY_FAILURE
      • UNSUPPORTED_PACKAGE_TYPE

        public static final int UNSUPPORTED_PACKAGE_TYPE
    • Constructor Detail

      • AnjayFirmwareUpdateException

        public AnjayFirmwareUpdateException​(int errorCode,
                                            java.lang.String message)
        Construct new AnjayFirmwareUpdateException.
        Parameters:
        errorCode - Error code that comes from or into native code, corresponding to a return value from a C function.
        message - The detail message. It is saved for later retrieval by the getMessage() method.
    • Method Detail

      • errorCode

        public int errorCode()
        Retrieves the error code corresponding to a return value of a C function.
        Returns:
        The error code. Usually a negative value.