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

from __future__ import annotations
from moovio_sdk import utils
from moovio_sdk.types import BaseModel
from typing import Dict, Optional


class ScheduleValidationErrorData(BaseModel):
    occurrences: Optional[Dict[str, str]] = None

    recur: Optional[str] = None

    description: Optional[str] = None


class ScheduleValidationError(Exception):
    data: ScheduleValidationErrorData

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

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