Error Handling

Please see the error-handling section in the code guidelines.