Modbus Software, Driver and Libraries
 Login 
Member of Modbus Organization

Have a Question?

We accept VISA, MasterCard, PayPal

30-day Money-Back Guarantee

BusProtocolException Class Reference
[Fieldbus Protocol Errors and Exceptions]

Inheritance diagram for BusProtocolException:

Inheritance graph
Collaboration diagram for BusProtocolException:

Collaboration graph
List of all members.

Detailed Description

General fieldbus protocol error.

Signals that a fieldbus protocol related I/O exception of has occured. This class is the general class of exceptions produced by failed or interrupted data transfer functions. It is also produced when receiving invalid frames or exception responses.

Version:
1.0
See also:
IOException


Public Member Functions

 BusProtocolException (String text)
 Constructs a BusProtocolException with the specified detail message.
 BusProtocolException ()
 Constructs a BusProtocolException without a detail message.

Static Public Member Functions

static long getCounter ()
 Returns how often this exception has been triggered.
static void resetCounter ()
 Resets exception counter.


Constructor & Destructor Documentation

BusProtocolException String  text  ) 
 

Constructs a BusProtocolException with the specified detail message.

Parameters:
text The detail message.


Member Function Documentation

static long getCounter  )  [static]
 

Returns how often this exception has been triggered.

Returns:
Counter value

Reimplemented in ChecksumException, InvalidFrameException, InvalidReplyException, EvaluationExpiredException, MbusIllegalAddressException, MbusIllegalFunctionException, MbusIllegalValueException, MbusResponseException, MbusSlaveFailureException, and ReplyTimeoutException.