inventorymgr/api/error.py
def handle_api_error(error: APIError) -> Response:
    """Convert an APIError to a Flask result to be return from an API call."""
    response = jsonify(error.as_dict())
    response.status_code = error.status_code
    return cast(Response, response)
Convert an APIError to a Flask result to be return from an API call.
Convert an APIError to a Flask result to be return from an API call.
Convert an APIError to a Flask result to be return from an API call .
def handle_api_error(error: APIError) -> Response:
    response = jsonify(error.as_dict())
    response.status_code = error.status_code
    return cast(Response, response)
def handle_api_error ( error : APIError ) -> Response : response = jsonify ( error . as_dict ( ) ) response . status_code = error . status_code return cast ( Response , response )
Convert an APIError to a Flask result to be return from an API call.
Convert an APIError to a Flask result to be return from an API call .
"""Convert an APIError to a Flask result to be return from an API call."""
error
APIError