title: How to compare the caught exception against standard exceptions in asynchronous task android?
body: <p>I am a beginner in both java and android. I am using asynchronous task in my project to fetch some data from a web service, faced some problems in exception handling. I referred this <a href="https://stackoverflow.com/questions/1739515/android-asynctask-and-error-handling">SO question</a> and I am following the pattern suggested by CommonsWare in this <a href="https://github.com/commonsguy/cw-lunchlist/blob/master/15-Internet/LunchList/src/apt/tutorial/FeedActivity.java" rel="noreferrer">link</a>.</p>
  
  <p>I succeeded in catching the exceptions and storing it in an exception variable. I need to compare the caught exception against some standard exceptions  in <code>onPostExecute</code> method also I would like to display custom error messages based on that. How can I compare this caught exception against standard exceptions? Any help would be appreciated. Thank you.</p>