jamod at SF

net.wimpi.modbus
Class ModbusIOException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bynet.wimpi.modbus.ModbusException
              extended bynet.wimpi.modbus.ModbusIOException
All Implemented Interfaces:
java.io.Serializable

public class ModbusIOException
extends ModbusException

Class that implements a ModbusIOException. Instances of this exception are thrown when errors in the I/O occur.

Version:
1.2rc1 (09/11/2004)
Author:
Dieter Wimberger
See Also:
Serialized Form

Constructor Summary
ModbusIOException()
          Constructs a new ModbusIOException instance.
ModbusIOException(boolean b)
          Constructs a new ModbusIOException instance.
ModbusIOException(java.lang.String message)
          Constructs a new ModbusIOException instance with the given message.
ModbusIOException(java.lang.String message, boolean b)
          Constructs a new ModbusIOException instance with the given message.
 
Method Summary
 boolean isEOF()
          Tests if this ModbusIOException is caused by an end of the stream.
 void setEOF(boolean b)
          Sets the flag that determines whether this ModbusIOException was caused by an end of the stream.
 
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
 

Constructor Detail

ModbusIOException

public ModbusIOException()
Constructs a new ModbusIOException instance.


ModbusIOException

public ModbusIOException(java.lang.String message)
Constructs a new ModbusIOException instance with the given message.

Parameters:
message - the message describing this ModbusIOException.

ModbusIOException

public ModbusIOException(boolean b)
Constructs a new ModbusIOException instance.

Parameters:
b - true if caused by end of stream, false otherwise.

ModbusIOException

public ModbusIOException(java.lang.String message,
                         boolean b)
Constructs a new ModbusIOException instance with the given message.

Parameters:
message - the message describing this ModbusIOException.
b - true if caused by end of stream, false otherwise.
Method Detail

isEOF

public boolean isEOF()
Tests if this ModbusIOException is caused by an end of the stream.

Returns:
true if stream ended, false otherwise.

setEOF

public void setEOF(boolean b)
Sets the flag that determines whether this ModbusIOException was caused by an end of the stream.

Parameters:
b - true if stream ended, false otherwise.

jamod at SF

Copyright © 2002-2004 jamod development team.