org.xlightweb
Class BadMessageException

Package class diagram package BadMessageException
java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by org.xlightweb.BadMessageException
All Implemented Interfaces:
Serializable

public final class BadMessageException
extends IOException

Checked exception thrown when a if a bad message occurs

See Also:
Serialized Form

Constructor Summary
BadMessageException(int statusCode)
          constructor
BadMessageException(int statusCode, String reason)
          constructor
BadMessageException(String reason)
          constructor
 
Method Summary
 int getStatus()
          get the status code
 
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

BadMessageException

public BadMessageException(String reason)
constructor

Parameters:
reason - the reason

BadMessageException

public BadMessageException(int statusCode)
constructor

Parameters:
statusCode - the status code

BadMessageException

public BadMessageException(int statusCode,
                           String reason)
constructor

Parameters:
statusCode - the status code
reason - the reason
Method Detail

getStatus

public int getStatus()
get the status code

Returns:
the status code