com.dalsemi.comm
Class CanBusException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.dalsemi.comm.CanBusException
All Implemented Interfaces:
java.io.Serializable

public class CanBusException
extends java.lang.Exception

Thrown when a bus or hardware error occurs with the CAN controller.

See Also:
Serialized Form

Field Summary
static int ALLOCATION_ERROR
           
static int BIT_ONE
           
static int BIT_STUFF
           
static int BIT_ZERO
           
static int CLOSE_NOTOWNER
           
static int COUNT_EXCEEDED
           
static int CRC
           
static int FORMAT
           
static int NONE
           
static int OPEN_ALREADYOPEN
           
static int PORT_DISABLED
           
static int PORT_NOTOPENED
           
static int TRANSMIT_NO_ACK
           
 
Constructor Summary
CanBusException()
          Constructs a CanBusException with no detail message.
CanBusException(java.lang.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.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, 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

NONE

public static final int NONE
See Also:
Constant Field Values

BIT_STUFF

public static final int BIT_STUFF
See Also:
Constant Field Values

FORMAT

public static final int FORMAT
See Also:
Constant Field Values

TRANSMIT_NO_ACK

public static final int TRANSMIT_NO_ACK
See Also:
Constant Field Values

BIT_ONE

public static final int BIT_ONE
See Also:
Constant Field Values

BIT_ZERO

public static final int BIT_ZERO
See Also:
Constant Field Values

CRC

public static final int CRC
See Also:
Constant Field Values

COUNT_EXCEEDED

public static final int COUNT_EXCEEDED
See Also:
Constant Field Values

PORT_DISABLED

public static final int PORT_DISABLED
See Also:
Constant Field Values

PORT_NOTOPENED

public static final int PORT_NOTOPENED
See Also:
Constant Field Values

OPEN_ALREADYOPEN

public static final int OPEN_ALREADYOPEN
See Also:
Constant Field Values

CLOSE_NOTOWNER

public static final int CLOSE_NOTOWNER
See Also:
Constant Field Values

ALLOCATION_ERROR

public static final int ALLOCATION_ERROR
See Also:
Constant Field Values
Constructor Detail

CanBusException

public CanBusException()
Constructs a CanBusException with no detail message.


CanBusException

public CanBusException(java.lang.String s,
                       int reason)
Constructs a CanBusException with the specified detail message and reason code.

Parameters:
s - the detail message
reason - reason code for exception
Method Detail

getReason

public int getReason()
Returns an int representing the CAN Bus error that occurred.

Returns:
reason code for the exception


Also see:
o TINI 1.18 API
o TINI Home Page
o 1-Wire API

o JDK 1.1

Last update Thu Feb 5 09:42:41 CST 2009