def raise_error(e):
code = e.error<EOL>if code in code_to_class:<EOL><INDENT>raise code_to_class[code](e.error_description)<EOL><DEDENT>else:<EOL><INDENT>raise InternalServerError(e.error_description)<EOL><DEDENT>
Take a bravado-core Error model and raise it as an exception