Two Laptop Bag
The moose likes Spring and the fly likes Unreported exception org.springframework.mail.MailException Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Frameworks » Spring
Reply locked New topic
Author

Unreported exception org.springframework.mail.MailException

vikky agrawal
Ranch Hand

Joined: Dec 18, 2008
Posts: 64
Unreported exception org.springframework.mail.MailException
I am working on a project in Netbeans and there are several classes and in one class I am getting this error : Unreported exception org.springframework.mail.MailException.
I tried to enclose the text within try catch block


but that doesn't helps and the following error displayed:
incompatible types : required java.lang.Throwable
found : org.springframework.mail.MailException


scjp 6
http://algorithmsea.blogspot.com
William P O'Sullivan
Ranch Hand

Joined: Mar 28, 2012
Posts: 860

public abstract class org.springframework.mail.MailException extends org.springframework.core.NestedRuntimeException

You should be using:

public class org.springframework.mail.MailSendException extends org.springframework.mail.MailException

WP
vikky agrawal
Ranch Hand

Joined: Dec 18, 2008
Posts: 64
Hi Willaim,

Thanks for replying, I just created a new project in netbeans and included spring and struts framework and that resolved my problem.

Thanks..!!
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Unreported exception org.springframework.mail.MailException
 
Similar Threads
how to throw exception from class level static block?
throw Exception question
cannot find symbol
exception
custom exception