'This function decides whether the error occured in a flask-restful
endpoint or not. If it happened in a flask-restful endpoint, our
handler will be dispatched. If it happened in an unrelated view, the
app\'s original error handler will be dispatched.
In the event that the error occurred in a flask-restful endpoint but
the local handler can\'t resolve the situation, the router will fall
back onto the original_handler as last resort.
:param original_handler: the original Flask error handler for the app
:type original_handler: function
:param e: the exception raised while handling the request
:type e: Exception'

def error_router(self, original_handler, e):

    if self._has_fr_route():
        try:
            return self.handle_error(e)
        except Exception:
            pass
    return original_handler(e)
