Package spread

Class 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
    • Constructor Summary

      Constructors 
      Constructor Description
      SpreadException()
      Creates a SpreadException with no error message.
      SpreadException​(java.lang.String errorMessage)
      Creates a SpreadException with an error message.
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, 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