"""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 (
    colorsvalidationerror as components_colorsvalidationerror,
)
from moovio_sdk.types import BaseModel
from typing import Optional


class BrandValidationErrorData(BaseModel):
    colors: Optional[components_colorsvalidationerror.ColorsValidationError] = None


class BrandValidationError(Exception):
    data: BrandValidationErrorData

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

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