| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
net.wimpi.modbus.ModbusException
net.wimpi.modbus.ModbusSlaveException
public class ModbusSlaveException
Class that implements a ModbusSlaveException. Instances of this exception are thrown when the slave returns a Modbus exception.
| Constructor Summary | |
|---|---|
| ModbusSlaveException(int TYPE)Constructs a new ModbusSlaveException instance with the given type. Types are defined according to the protocol specification in net.wimpi.modbus.Modbus. | |
| Method Summary | |
|---|---|
|  String | getMessage() | 
|  int | getType()Returns the type of this ModbusSlaveException. | 
|  boolean | isType(int TYPE)Tests if this ModbusSlaveException is of a given type. | 
| Methods inherited from class java.lang.Throwable | 
|---|
| fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public ModbusSlaveException(int TYPE)
TYPE - the type of exception that occured.Modbus| Method Detail | 
|---|
public int getType()
Modbuspublic boolean isType(int TYPE)
TYPE - the type to test this
        ModbusSlaveException type against.
Modbuspublic String getMessage()
getMessage in class Throwable| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||