public class ModbusSlaveException extends ModbusException
| Constructor and Description |
|---|
ModbusSlaveException(int type)
Constructs a new ModbusSlaveException instance with the given
type.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getMessage()
Get the exception type message associated with this exception.
|
static String |
getMessage(int type)
Get the exception type message associated with the given exception
number.
|
int |
getType()
Returns the type of this ModbusSlaveException.
|
boolean |
isType(int type)
Tests if this ModbusSlaveException is of a given type.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic 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.
type - the type of exception that occurred.public static String getMessage(int type)
type - Numerical value of the Modbus exception.public int getType()
Returns the type of this ModbusSlaveException.
Types are defined according to the protocol specification in
net.wimpi.modbus.Modbus.
public boolean isType(int type)
Tests if this ModbusSlaveException is of a given type.
Types are defined according to the protocol specification in net.wimpi.modbus.Modbus.
type - the type to test this ModbusSlaveException type
against.public String getMessage()
getMessage in class ThrowableCopyright © 2025. All Rights Reserved.