advancedrelay.laygo
Class ProtocolStackException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--advancedrelay.laygo.ProtocolStackException
All Implemented Interfaces:
java.io.Serializable

public class ProtocolStackException
extends java.lang.Exception

General LayGO exception class for protocol stack errors.

See Also:
Serialized Form

Constructor Summary
ProtocolStackException()
          Simple constructor
ProtocolStackException(int result)
          Constructs an exception from a Laygo result code.
ProtocolStackException(int result, java.lang.String msg)
          Constructs an exception from a Laygo return code and additional string data.
ProtocolStackException(java.lang.String msg)
          Simple string constructor
 
Method Summary
 int getResult()
          Returns the result code which caused the exception.
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProtocolStackException

public ProtocolStackException()
Simple constructor


ProtocolStackException

public ProtocolStackException(int result)
Constructs an exception from a Laygo result code.

Parameters:
result - The Laygo result code returned by the protocol stack.

ProtocolStackException

public ProtocolStackException(int result,
                              java.lang.String msg)
Constructs an exception from a Laygo return code and additional string data.

Parameters:
result - The Laygo result code returned by the protocol stack.
msg - Additional string data giving details about the cause of the exception.

ProtocolStackException

public ProtocolStackException(java.lang.String msg)
Simple string constructor

Method Detail

getResult

public int getResult()
Returns the result code which caused the exception.