"""Application exceptions.""" class FailedToStartError(Exception): """Should be raised when application fails to start.""" def __init__(self, reason, *args, **kwargs): """Create new instance of FailedToStartError. Args: reason (str): Description of failure. """ super(FailedToStartError).__init__(*args, **kwargs) self.reason = reason def __str__(self): """Get string representation of FailedToStart error.""" return 'Application failed to start due to: {0}'.format(self.reason) class IgnoredMessageError(Exception): """Ignored message error."""