spread
Class SpreadException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byspread.SpreadException
All Implemented Interfaces:
java.io.Serializable

public class SpreadException
extends java.lang.Exception

A SpreadException is thrown whenever a problem occurs in a spread method. One example is calling a SpreadConnection object's SpreadConnection.receive() method before calling SpreadConnection.connect(InetAddress, int, String, boolean, boolean) on the object.

More exceptions will probably be provided in the future, to give more detailed error information. However, these exceptions will all be extended from SpreadException, so any exception-handling code written to handle SpreadException's will catch the new exceptions equally well.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
SpreadException()
          Creates a SpreadException with no error message.
SpreadException(java.lang.String errorMessage)
          Creates a SpreadException with an error message.
 
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

SpreadException

public SpreadException()
Creates a SpreadException with no error message.


SpreadException

public SpreadException(java.lang.String errorMessage)
Creates a SpreadException with an error message.

Parameters:
errorMessage - a description of the error


Copyright © 2002 Spread Concepts LLC. All Rights Reserved.