FileDocCategorySizeDatePackage
NNTPException.javaAPI DocApache James 2.3.12538Fri Jan 12 12:56:24 GMT 2007org.apache.james.nntpserver

NNTPException

public class NNTPException extends 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'

Fields Summary
private final Throwable
t
The encapsulated Throwable
Constructors Summary
public NNTPException(String msg)
Create an NNTPException with an error message and no encapsulated Throwable

param
msg the error message for this exception

        super(msg);
        this.t = null;
    
public NNTPException(String msg, Throwable t)
Create an NNTPException with an error message and an encapsulated Throwable

param
msg the error message for this exception
param
t the encapsulated Throwable

        super(msg+((t!=null)?": "+t.toString():""));
        this.t = t;
    
public NNTPException(Throwable t)
Create an NNTPException with an encapsulated Throwable

param
t the encapsulated Throwable

        super(t.toString());
        this.t = t;
    
Methods Summary