com.ibutton.cib
Class CibCommunicationException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--com.ibutton.cib.CibCommunicationException

public class CibCommunicationException
extends java.lang.RuntimeException

An exception thrown when a communication error occurs with the iButton.

See Also:
Serialized Form

Field Summary
static int ER_ACCESS
           
static int ER_ACK
           
static int ER_ADAPTER
           
static int ER_BADHEADER
           
static int ER_CHECKSUM
           
static int ER_COLLIDE
           
static int ER_comMERROR
           
static int ER_COPRUN
           
static int ER_CRC
           
static int ER_GETSTATUS
           
static int ER_HDRCRC
           
static int ER_NOGROUP
           
static int ER_NOHEADER
           
static int ER_NOROOM
           
static int ER_OVERRUN
           
static int ER_POR
           
static int ER_RECVDATA
           
static int ER_RECVHDR
           
static int ER_RERUN
           
static int ER_SENDDATA
           
static int ER_SENDHDR
           
static int ER_SENDINT
           
static int ER_SENDRESET
           
static int ER_SENDRUN
           
static int ER_SENDSTATUS
           
static int ER_SEQUENCE
           
 
Constructor Summary
CibCommunicationException()
          Constructs a new CibCommunication Exception.
CibCommunicationException(int i, int p)
          Constructs a new CibCommunicationException with the given arguments as reasons.
CibCommunicationException(java.lang.String s)
          Creates a new CibCommunicationException with the given string as the reason.
 
Method Summary
 int getErrorGroup()
          Gets the group number of this exception.
 int getErrorNumber()
          Gets the error number of this exception.
 void setErrorGroup(int errorGroup)
          Sets the error group for this exception.
 java.lang.String toString()
          Returns a string representation of this exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ER_NOROOM

public static final int ER_NOROOM

ER_POR

public static final int ER_POR

ER_ACCESS

public static final int ER_ACCESS

ER_COLLIDE

public static final int ER_COLLIDE

ER_ACK

public static final int ER_ACK

ER_CRC

public static final int ER_CRC

ER_CHECKSUM

public static final int ER_CHECKSUM

ER_NOHEADER

public static final int ER_NOHEADER

ER_BADHEADER

public static final int ER_BADHEADER

ER_HDRCRC

public static final int ER_HDRCRC

ER_SEQUENCE

public static final int ER_SEQUENCE

ER_OVERRUN

public static final int ER_OVERRUN

ER_COPRUN

public static final int ER_COPRUN

ER_RERUN

public static final int ER_RERUN

ER_ADAPTER

public static final int ER_ADAPTER

ER_NOGROUP

public static final int ER_NOGROUP

ER_SENDDATA

public static final int ER_SENDDATA

ER_SENDHDR

public static final int ER_SENDHDR

ER_GETSTATUS

public static final int ER_GETSTATUS

ER_SENDSTATUS

public static final int ER_SENDSTATUS

ER_SENDRUN

public static final int ER_SENDRUN

ER_SENDRESET

public static final int ER_SENDRESET

ER_SENDINT

public static final int ER_SENDINT

ER_RECVHDR

public static final int ER_RECVHDR

ER_RECVDATA

public static final int ER_RECVDATA

ER_comMERROR

public static final int ER_comMERROR
Constructor Detail

CibCommunicationException

public CibCommunicationException()
Constructs a new CibCommunication Exception. With no valid exception number or group set. These must be set to a valid value to have meaning.

CibCommunicationException

public CibCommunicationException(int i,
                                 int p)
Constructs a new CibCommunicationException with the given arguments as reasons.
Parameters:
i - The exception number.
p - The group number of the exception.

CibCommunicationException

public CibCommunicationException(java.lang.String s)
Creates a new CibCommunicationException with the given string as the reason.
Parameters:
s - the exception reason.
Method Detail

toString

public java.lang.String toString()
Returns a string representation of this exception.
Returns:
a string representing this exception.
Overrides:
toString in class java.lang.Throwable

getErrorNumber

public int getErrorNumber()
Gets the error number of this exception.
Returns:
the error number.

getErrorGroup

public int getErrorGroup()
Gets the group number of this exception.
Returns:
the group number.

setErrorGroup

public void setErrorGroup(int errorGroup)
Sets the error group for this exception.
Parameters:
errorGroup - the errorGroup.