# Path: mollie/api/error.py
# class Error(Exception):
#     """Base exception."""
# 
#     pass


from mollie.api.error import Error
        response = client.profiles.update(profile_id, data)
        body += str(response)

        # https://docs.mollie.com/reference/v2/profiles-api/enable-method

        body += "<h1>Enable payment method</h1>"
        profile = client.profiles.get(profile_id)
        response = client.profile_methods.on(profile, "bancontact").create()
        body += str(response)

        # https://docs.mollie.com/reference/v2/profiles-api/disable-method

        body += "<h1>Disable payment method</h1>"
        response = client.profile_methods.on(profile, "bancontact").delete()
        body += str(response)

        # https://docs.mollie.com/reference/v2/profiles-api/list-profiles

        body += "<h1>List profiles</h1>"
        response = client.profiles.list()
        body += str(response)

        # https://docs.mollie.com/reference/v2/profiles-api/delete-profile

        body += "<h1>Delete profile</h1>"
        response = client.profiles.delete(profile_id)
        body += str(response)

        return body


# Path: mollie/api/error.py
# class Error(Exception):
#     """Base exception."""
# 
#     pass


# Path: examples/oauth/05-profiles.py
from mollie.api.error import Error

        response = client.profiles.update(profile_id, data)
        body += str(response)

        # https://docs.mollie.com/reference/v2/profiles-api/enable-method

        body += "<h1>Enable payment method</h1>"
        profile = client.profiles.get(profile_id)
        response = client.profile_methods.on(profile, "bancontact").create()
        body += str(response)

        # https://docs.mollie.com/reference/v2/profiles-api/disable-method

        body += "<h1>Disable payment method</h1>"
        response = client.profile_methods.on(profile, "bancontact").delete()
        body += str(response)

        # https://docs.mollie.com/reference/v2/profiles-api/list-profiles

        body += "<h1>List profiles</h1>"
        response = client.profiles.list()
        body += str(response)

        # https://docs.mollie.com/reference/v2/profiles-api/delete-profile

        body += "<h1>Delete profile</h1>"
        response = client.profiles.delete(profile_id)
        body += str(response)

        return body


    except Error as err: