def METHOD_NAME(self, exception):
    """Build an error response based on the function.
    :param exception: The exception to return
    :raises: An exception response
    """
    exc = ExceptionResponse(self.function_code, exception)
    Log.error("Exception response {}", exc)
    return exc