org.apache.james.nntpserver
Class NNTPException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.apache.james.nntpserver.NNTPException
All Implemented Interfaces:
java.io.Serializable

public class NNTPException
extends java.lang.RuntimeException

Exception Wrapper, like javax.servlet.ServletException. Purpose is to catch and wrap exceptions into unchecked NNTP specific. Protocol handler catches the exception and returns error info to client. Error Information is obtained by calling 'getMessage'

See Also:
Serialized Form

Constructor Summary
NNTPException(java.lang.String msg)
          Create an NNTPException with an error message and no encapsulated Throwable
NNTPException(java.lang.String msg, java.lang.Throwable t)
          Create an NNTPException with an error message and an encapsulated Throwable
NNTPException(java.lang.Throwable t)
          Create an NNTPException with an encapsulated Throwable
 
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

NNTPException

public NNTPException(java.lang.String msg)
Create an NNTPException with an error message and no encapsulated Throwable

Parameters:
msg - the error message for this exception

NNTPException

public NNTPException(java.lang.String msg,
                     java.lang.Throwable t)
Create an NNTPException with an error message and an encapsulated Throwable

Parameters:
msg - the error message for this exception
t - the encapsulated Throwable

NNTPException

public NNTPException(java.lang.Throwable t)
Create an NNTPException with an encapsulated Throwable

Parameters:
t - the encapsulated Throwable


Copyright © 2002-2007 The Apache Software Foundation. All Rights Reserved.