I got this warning on sonar. what is the proper solution to this warning.
My methos is Like:
public void abc(A a) throws Exeption {
dao.pqr(a);
}
i got warning to this method in Class.What is proper solution to this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You should throw the actual Exception(s) if they are known.
If the method you call
throws Exceptionand you can’t change it there is nothing you can do about it except suppress the warning.