Class RFIDReaderException

  • All Implemented Interfaces:
    java.io.Serializable

    public class RFIDReaderException
    extends java.lang.Exception
    The Exception Class for the metraTec RFID readers
    Author:
    Matthias Neumann (neumann@metratec.com)
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      RFIDReaderException()
      Constructs a new RFID reader exception.
      RFIDReaderException​(int errorcode)
      Constructs a new RFID reader exception with the specified error code.
      RFIDReaderException​(int errorcode, java.lang.String s)
      Constructs a new RFID reader exception with the specified detail message and error code.
      RFIDReaderException​(java.lang.String s)
      Constructs a new RFID reader exception with the specified detail message.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getErrorCode()  
      • 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

      • RFIDReaderException

        public RFIDReaderException()
        Constructs a new RFID reader exception.
        See Also:
        Exception
      • RFIDReaderException

        public RFIDReaderException​(java.lang.String s)
        Constructs a new RFID reader exception with the specified detail message.
        Parameters:
        s - the detail message. The detail message is saved for later retrieval by the Throwable.getMessage() method.
        See Also:
        Exception(String message)
      • RFIDReaderException

        public RFIDReaderException​(int errorcode)
        Constructs a new RFID reader exception with the specified error code.
        Parameters:
        errorcode - the error code. The detail message is saved for later retrieval by the getErrorCode() method.
      • RFIDReaderException

        public RFIDReaderException​(int errorcode,
                                   java.lang.String s)
        Constructs a new RFID reader exception with the specified detail message and error code.
        Parameters:
        errorcode - the error code. The detail message is saved for later retrieval by the getErrorCode() method.
        s - the detail message. The detail message is saved for later retrieval by the Throwable.getMessage() method.
    • Method Detail

      • getErrorCode

        public int getErrorCode()
        Returns:
        the error code ('0' if not initialize).