def format_error(e):
if isinstance(e, PyMacaronException):<EOL><INDENT>return e.to_model()<EOL><DEDENT>if isinstance(e, PyMacaronCoreException) and e.__class__.__name__ == '<STR_LIT>':<EOL><INDENT>return ValidationError(str(e)).to_model()<EOL><DEDENT>return UnhandledServerError(str(e)).to_model()<EOL>
Take an exception caught within pymacaron_core and turn it into a
    bravado-core Error instance