# Generated by sila2.code_generator; sila2.__version__: 0.10.3
from __future__ import annotations

from typing import Optional

from sila2.framework.errors.defined_execution_error import DefinedExecutionError

from .laborchestratorservice_feature import LabOrchestratorServiceFeature


class InvalidProcess(DefinedExecutionError):
    def __init__(self, message: Optional[str] = None):
        if message is None:
            message = "Invalid Python Lab Process"
        super().__init__(LabOrchestratorServiceFeature.defined_execution_errors["InvalidProcess"], message=message)


class InvalidLabConfiguration(DefinedExecutionError):
    def __init__(self, message: Optional[str] = None):
        if message is None:
            message = "Invalid Lab Configuration"
        super().__init__(
            LabOrchestratorServiceFeature.defined_execution_errors["InvalidLabConfiguration"], message=message
        )
