com.limegroup.gnutella.messages
Class BadPacketException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.limegroup.gnutella.messages.BadPacketException
All Implemented Interfaces:
java.io.Serializable

public class BadPacketException
extends java.lang.Exception

An exception for reading bad data from the network. This is generally non-fatal.

See Also:
Serialized Form

Field Summary
static BadPacketException CANNOT_ACCEPT_URN_QUERIES
          Cached exception for not handling URN queries.
static BadPacketException HOPS_EXCEED_SOFT_MAX
          Reusable exception for efficiency that can be statically accessed.
static BadPacketException ILLEGAL_CHAR_IN_QUERY
          Cached exception for queries that have illegal characters.
static BadPacketException QUERY_TOO_BIG
          Cached exception for queries that are too big.
static BadPacketException XML_QUERY_TOO_BIG
          Cached exception for XML queries that are too big.
 
Constructor Summary
BadPacketException()
           
BadPacketException(java.lang.String msg)
           
 
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
 

Field Detail

HOPS_EXCEED_SOFT_MAX

public static final BadPacketException HOPS_EXCEED_SOFT_MAX
Reusable exception for efficiency that can be statically accessed. These are created a lot, so it makes sense to cache it.


CANNOT_ACCEPT_URN_QUERIES

public static final BadPacketException CANNOT_ACCEPT_URN_QUERIES
Cached exception for not handling URN queries.


QUERY_TOO_BIG

public static final BadPacketException QUERY_TOO_BIG
Cached exception for queries that are too big.


XML_QUERY_TOO_BIG

public static final BadPacketException XML_QUERY_TOO_BIG
Cached exception for XML queries that are too big.


ILLEGAL_CHAR_IN_QUERY

public static final BadPacketException ILLEGAL_CHAR_IN_QUERY
Cached exception for queries that have illegal characters.

Constructor Detail

BadPacketException

public BadPacketException()

BadPacketException

public BadPacketException(java.lang.String msg)