org.dhcp4java
Class DHCPBadPacketException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.lang.IllegalArgumentException
                  extended by org.dhcp4java.DHCPBadPacketException
All Implemented Interfaces:
java.io.Serializable

public class DHCPBadPacketException
extends java.lang.IllegalArgumentException

Thrown to indicate that a DHCP datagram is malformed.

The DHCP datagram may be too big, too small, or contain garbage data that makes it impossible to parse correctly.

It inherits from IllegalArgumentException and RuntimeException so it doesn't need to be explicitly caught.

Version:
0.99
Author:
Stephan Hadinger
See Also:
Serialized Form

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

DHCPBadPacketException

public DHCPBadPacketException()
Constructs an DHCPBadPacketException with no detail message.


DHCPBadPacketException

public DHCPBadPacketException(java.lang.String message)
Constructs an DHCPBadPacketException with the specified detail message.

Parameters:
message - the detail message.

DHCPBadPacketException

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

Note that the detail message associated with cause is not automatically incorporated in this exception's detail message.

Parameters:
message - the detail message (which is saved for later retrieval by the Throwable.getMessage() method).
cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)

DHCPBadPacketException

public DHCPBadPacketException(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 (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)