j_waste.network
Class InvalidPacketException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byj_waste.network.InvalidPacketException
All Implemented Interfaces:
java.io.Serializable

public class InvalidPacketException
extends java.lang.Exception

This is the InvalidPacketException class defining an exception for invalid packets in J-WASTE.

Version:
0.1
Author:
Jan Lindblom (cl0wn@users.sourceforge.net)
See Also:
Serialized Form

Constructor Summary
InvalidPacketException()
          Constructs a new exception with null as its detail message.
InvalidPacketException(java.lang.String s)
          Constructs a new exception with the specified detail message.
InvalidPacketException(java.lang.String s, java.lang.Throwable cause)
          Constructs a new exception with the specified detail message and cause.
InvalidPacketException(java.lang.Throwable cause)
          Constructs a new exception with the specified cause and a detail message of (cause==null ?
 
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

InvalidPacketException

public InvalidPacketException()
Constructs a new exception with null as its detail message.


InvalidPacketException

public InvalidPacketException(java.lang.String s)
Constructs a new exception with the specified detail message.

Parameters:
s - the detail message.

InvalidPacketException

public InvalidPacketException(java.lang.String s,
                              java.lang.Throwable cause)
Constructs a new exception with the specified detail message and cause.

Parameters:
s - the detail message.
cause - the cause.

InvalidPacketException

public InvalidPacketException(java.lang.Throwable cause)
Constructs a new exception with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause).

Parameters:
cause - the cause.