Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualApochPiQ

Posted 30 April 2013 - 11:50 AM

It's a very simple process, albeit work-intensive and tedious at times:
  • Find an API that you call that is not currently error-checked
  • Look up the documentation for that API to determine what it does (if anything!) to indicate failure
  • Write some simple checks (usually just if statements) to see if that failure happened at runtime
  • Decide on how to handle failures: throw an exception, display a runtime error message, etc.
  • Implement your chosen mechanism for failure-response
  • Repeat from the top
It's also worth noting that "it's not working" is not helpful to anyone. Describe what you expect to happen, what actually happens, and try and pinpoint where the two are not identical.

#1ApochPiQ

Posted 30 April 2013 - 11:49 AM

It's a very simple process, albeit work-intensive and tedious at times:
  • Find an API that you call that is not currently error-checked
  • Look up the documentation for that API to determine what it does (if anything!) to indicate failure
  • Write some simple checks (usually just if statements) to see if that failure happened at runtime
  • Decide on how to handle failures: throw an exception, display a runtime error message, etc.
  • Implement your chosen mechanism for failure-response
  • Repeat from the top

PARTNERS