Tuesday, 19 March 2019

error: unreported exception ParseException; must be caught or declared to be thrown

Put the parse calls in a try block (preferably each in their own), and then specify in the catch block what should happen if the parsing fails.

The format is:-

try {
 //The code you are trying to exception handle
}
catch (Exception e) {
 //The handling for the code
}

No comments:

Post a Comment

Error While embed the video in Your website page

Error:- Refused to display '<URL>' in a frame because it set 'X-Frame-Options' to 'sameorigin Solution:- if ...