safe.messaging.example.error_message_example module

InaSAFE Disaster risk assessment tool by AusAid - Error Message example.

Contact : ole.moller.nielsen@gmail.com

Note

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

exception safe.messaging.example.error_message_example.SafeError(message, error_message=None)[source]

Bases: exceptions.Exception

Base class for all SAFE messages that propogates ErrorMessages.

safe.messaging.example.error_message_example.error_creator1()[source]

Simple function that will create an error.

safe.messaging.example.error_message_example.error_creator2()[source]

Simple function that will extend an error and its traceback.

safe.messaging.example.error_message_example.error_creator3()[source]

Raise a safe style error.

safe.messaging.example.error_message_example.error_creator4()[source]

Raise a safe style error.

safe.messaging.example.error_message_example.error_creator5()[source]

Raise a safe style error and append a full message.