Menu Close

Error reporting

Don’t wake me up, but if a problem occurs that requires you to do so, at least include enough information so that I can fix it.

Coding at a low level means thinking about how your code could go wrong. All the possible ways an input could mess up your code.

A message comes in that causes the process to crash. Log what’s in the message; include it in the exception that you throw or the error you’re returning.

The difference between “a problem happened” and “here’s a message I can’t parse” is huge. With enough information in the exception, we may be able to automate the response and the need to wake anyone up goes away.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.