FileDocCategorySizeDatePackage
ExceptionThrowingMailet.javaAPI DocApache James 2.3.12030Fri Jan 12 12:56:30 GMT 2007org.apache.james.transport.mailets.debug

ExceptionThrowingMailet

public class ExceptionThrowingMailet extends org.apache.mailet.GenericMailet
Debugging purpose Mailet. Just throws an exception.

Fields Summary
Constructors Summary
Methods Summary
public java.lang.StringgetMailetInfo()
Return a string describing this mailet.

return
a string describing this mailet

        return "ExceptionThrowingMailet Mailet";
    
public voidservice(org.apache.mailet.Mail mail)
Throw an exception if any mail is processed.

param
mail the mail to process
throws
MailetException in all cases

        throw new MailetException("General protection fault");