Rakesh API

org.rakeshv.mail
Class MailException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.rakeshv.mail.MailException
All Implemented Interfaces:
java.io.Serializable

public class MailException
extends java.lang.Exception

A custom exception that is used when any kind of exceptions are encountered when interacting with the javax.mail package, or the various other java packages that are used by the system.

Copyright 2003 Rakesh Vidyadharan

Version:
$Id: MailException.java,v 1.6 2004/05/26 11:42:37 rakesh Exp $
Author:
Rakesh Vidyadharan 2003 February 12
See Also:
Serialized Form

Field Summary
private  boolean critical
          A boolean field that indicates the criticality of the error.
 
Constructor Summary
MailException(boolean critical, java.lang.String message)
          Create a new exception with the specified message.
MailException(boolean critical, java.lang.String message, java.lang.Throwable throwable)
          Create a new exception with the specified message and instance of Throwable that caused the problem.
MailException(java.lang.String message)
          Create a new exception with the specified message.
MailException(java.lang.String message, java.lang.Throwable throwable)
          Create a new exception with the specified message.
 
Method Summary
 boolean getCritical()
          Returns critical.
 
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

critical

private boolean critical
A boolean field that indicates the criticality of the error. A value of true is used to indicate a critical error, while a value of false is used to indicate a non critical error.

Constructor Detail

MailException

public MailException(java.lang.String message)
Create a new exception with the specified message. Simply invokes the super class constructor with the message specified.

Parameters:
message - - The message that describes the problem.

MailException

public MailException(java.lang.String message,
                     java.lang.Throwable throwable)
Create a new exception with the specified message. Simply invokes the super class constructor with the message specified.

Parameters:
message - - The message that describes the problem.

MailException

public MailException(boolean critical,
                     java.lang.String message)
Create a new exception with the specified message.

Parameters:
critical - - Use a value true to indicate that the error encountered was critical.
message - - The message that describes the problem.

MailException

public MailException(boolean critical,
                     java.lang.String message,
                     java.lang.Throwable throwable)
Create a new exception with the specified message and instance of Throwable that caused the problem.

Parameters:
critical - - Use a value true to indicate that the error encountered was critical.
message - - The message that describes the problem.
throwable - - The instance of Throwable that caused this instance of the exception to be thrown.
Method Detail

getCritical

public final boolean getCritical()
Returns critical.

Returns:
boolean - The value/reference of/to critical.

Rakesh API

Copyright © 2002-2005 - Rakesh Vidyadharan