"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""

from __future__ import annotations
from moovio_sdk import utils
from moovio_sdk.models.components import (
    patchaccounterror as components_patchaccounterror,
)
from moovio_sdk.types import BaseModel


class UpdateAccountResponseBodyData(BaseModel):
    error: components_patchaccounterror.PatchAccountError


class UpdateAccountResponseBody(Exception):
    r"""The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields."""

    data: UpdateAccountResponseBodyData

    def __init__(self, data: UpdateAccountResponseBodyData):
        self.data = data

    def __str__(self) -> str:
        return utils.marshal_json(self.data, UpdateAccountResponseBodyData)
