|
Rakesh API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.rakeshv.mail.MailException
public class MailException
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
| 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 |
|---|
private boolean critical
true is used to indicate a critical error,
while a value of false is used to indicate a non
critical error.
| Constructor Detail |
|---|
public MailException(java.lang.String message)
message - - The message that describes the problem.
public MailException(java.lang.String message,
java.lang.Throwable throwable)
message - - The message that describes the problem.
public MailException(boolean critical,
java.lang.String message)
critical - - Use a value true to
indicate that the error encountered was critical.message - - The message that describes the problem.
public MailException(boolean critical,
java.lang.String message,
java.lang.Throwable throwable)
Throwable that caused the problem.
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 |
|---|
public final boolean getCritical()
critical.
|
Rakesh API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||