json - Unhandled exception error, android -


i fetch json object function have unhandled exception error, knows problem, appreciated sample code!

thanks!

//here error, when want fetch object = jsonobj //acctually error in code cann't run it, it's red line //testvalidator.validatedatewithcriteria(testcriteria, jsonobj);

   return testvalidator.testwithcriteria(testcriteria, jsonobj); } 

in definition of datevalidator#validatedatewithcriteria() have said throws exception.

however, when call method, aren't putting in try/catch block. because have said throw exception, must attempt catch potential exception whenever call method. example:

try{      return datevalidator.validatedatewithcriteria(validationcriteria, jsonobj); }catch(exception ex){     log.e("your tag", "datevalidator", ex);     return null; } 

Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -