O'Reilly logo

Practices of an Agile Developer by Andy Hunt, Venkat Subramaniam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

pointer-image   37   Provide Useful Error Messages

 

“Don’t scare the users, or even other programmers. Give them a nice, sanitized error message. Use something comforting like User Error. Replace, and Continue.”

images/devil.png

As applications are deployed and put into use in the real world, things will fail from time to time. A computation module may fail, for instance, or the connection to a database server may be lost. When you can’t honor a user’s request, you want to handle it gracefully.

When such an error occurs, is it enough to pop up a graceful, apologetic message ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required