com.starmicronics.stario
Class StarIOPortException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.starmicronics.stario.StarIOPortException
All Implemented Interfaces:
java.io.Serializable

public class StarIOPortException
extends java.lang.Exception

StarIOPortExceptions are thrown when a communication failure occurs.

See Also:
Serialized Form

Constructor Summary
StarIOPortException(boolean isPortInUseFailure, java.lang.String message)
           
StarIOPortException(java.lang.String message)
           
 
Method Summary
 boolean getIsPortInUseFailure()
          This property indicates if the failure occurred because the port is being used by another process, in which case, you should sleep a bit before trying again.
 
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

StarIOPortException

public StarIOPortException(java.lang.String message)

StarIOPortException

public StarIOPortException(boolean isPortInUseFailure,
                           java.lang.String message)
Method Detail

getIsPortInUseFailure

public boolean getIsPortInUseFailure()
This property indicates if the failure occurred because the port is being used by another process, in which case, you should sleep a bit before trying again.

Returns:
true if the failure occurred because another process is using the port and false otherwise