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:-
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