com.dalsemi.comm
Class CanBusException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--com.dalsemi.comm.CanBusException
- public class CanBusException
- extends Exception
Thrown when a bus or hardware error occurs with the CAN controller.
- See Also:
- Serialized Form
Constructor Summary |
CanBusException()
Constructs a CanBusException with no detail
message. |
CanBusException(String s,
int reason)
Constructs a CanBusException with the specified
detail message and reason code. |
Method Summary |
int |
getReason()
Returns an int representing the CAN Bus error that occurred. |
NONE
public static final int NONE
BIT_STUFF
public static final int BIT_STUFF
FORMAT
public static final int FORMAT
TRANSMIT_NO_ACK
public static final int TRANSMIT_NO_ACK
BIT_ONE
public static final int BIT_ONE
BIT_ZERO
public static final int BIT_ZERO
CRC
public static final int CRC
COUNT_EXCEEDED
public static final int COUNT_EXCEEDED
PORT_DISABLED
public static final int PORT_DISABLED
PORT_NOTOPENED
public static final int PORT_NOTOPENED
OPEN_ALREADYOPEN
public static final int OPEN_ALREADYOPEN
CLOSE_NOTOWNER
public static final int CLOSE_NOTOWNER
ALLOCATION_ERROR
public static final int ALLOCATION_ERROR
CanBusException
public CanBusException()
- Constructs a
CanBusException
with no detail
message.
CanBusException
public CanBusException(String s,
int reason)
- Constructs a
CanBusException
with the specified
detail message and reason code.
- Parameters:
s
- the detail messagereason
- reason code for exception
getReason
public int getReason()
- Returns an
int
representing the CAN Bus error that occurred.
- Returns:
- reason code for the exception