Wednesday, June 30, 2010

Creating your own exception or creating custom exception


Create your own exception or creating custom exception

class EmailSendException extends Exception {

public EmailSendException() {
super();
}

public EmailSendException(String message, Throwable cause) {
super(message, cause);

}

public EmailSendException(String message) {
super(message);
}

public EmailSendException(Throwable cause) {
super(cause);
}
}

No comments:

Post a Comment