Package coprs :: Module error_handlers :: Class UIErrorHandler
[hide private]
[frames] | no frames]

Class UIErrorHandler

source code


Handle exceptions raised from the web user interface

Instance Methods [hide private]
 
handle_error(self, error)
Return a flask response suitable for the current situation (e.g.
source code

Inherited from BaseErrorHandler: code, message

Method Details [hide private]

handle_error(self, error)

source code 

Return a flask response suitable for the current situation (e.g. reder HTML page for UI failures, send JSON back to API client, etc).

This method is expected to be implemented in descendants of this class.

Overrides: BaseErrorHandler.handle_error
(inherited documentation)