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
|
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 |
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
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.
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.