"""Custom error for invalid config file value."""

from .Error import Error

ERROR_MESSAGE = """
Invalid configuration file value for: {key}

Expected: {expected}
"""


class InvalidYAMLValueError(Error):
    """Custom error for invalid config file value."""

    def __init__(self, yaml_file_path, key, expected):
        """Create error for invalid config file value."""
        super().__init__()
        self.yaml_file_path = yaml_file_path
        self.key = key
        self.expected = expected

    def __str__(self):
        """Override default error string.

        Returns:
            Error message for invalid config file value.
        """
        base_message = self.base_message.format(filename=self.yaml_file_path)
        error_message = ERROR_MESSAGE.format(key=self.key, expected=self.expected)
        return base_message + error_message

89aff1c7f830d2af2833704660c9d395c210f07c
<mask token>


class InvalidYAMLValueError(Error):
    <mask token>

    def __init__(self, yaml_file_path, key, expected):
        """Create error for invalid config file value."""
        super().__init__()
        self.yaml_file_path = yaml_file_path
        self.key = key
        self.expected = expected

    def __str__(self):
        """Override default error string.

        Returns:
            Error message for invalid config file value.
        """
        base_message = self.base_message.format(filename=self.yaml_file_path)
        error_message = ERROR_MESSAGE.format(key=self.key, expected=self.
            expected)
        return base_message + error_message

<mask token>


class InvalidYAMLValueError(Error):
    """Custom error for invalid config file value."""

    def __init__(self, yaml_file_path, key, expected):
        """Create error for invalid config file value."""
        super().__init__()
        self.yaml_file_path = yaml_file_path
        self.key = key
        self.expected = expected

    def __str__(self):
        """Override default error string.

        Returns:
            Error message for invalid config file value.
        """
        base_message = self.base_message.format(filename=self.yaml_file_path)
        error_message = ERROR_MESSAGE.format(key=self.key, expected=self.
            expected)
        return base_message + error_message

<mask token>
ERROR_MESSAGE = """
Invalid configuration file value for: {key}

Expected: {expected}
"""


class InvalidYAMLValueError(Error):
    """Custom error for invalid config file value."""

    def __init__(self, yaml_file_path, key, expected):
        """Create error for invalid config file value."""
        super().__init__()
        self.yaml_file_path = yaml_file_path
        self.key = key
        self.expected = expected

    def __str__(self):
        """Override default error string.

        Returns:
            Error message for invalid config file value.
        """
        base_message = self.base_message.format(filename=self.yaml_file_path)
        error_message = ERROR_MESSAGE.format(key=self.key, expected=self.
            expected)
        return base_message + error_message

<mask token>
from .Error import Error
ERROR_MESSAGE = """
Invalid configuration file value for: {key}

Expected: {expected}
"""


class InvalidYAMLValueError(Error):
    """Custom error for invalid config file value."""

    def __init__(self, yaml_file_path, key, expected):
        """Create error for invalid config file value."""
        super().__init__()
        self.yaml_file_path = yaml_file_path
        self.key = key
        self.expected = expected

    def __str__(self):
        """Override default error string.

        Returns:
            Error message for invalid config file value.
        """
        base_message = self.base_message.format(filename=self.yaml_file_path)
        error_message = ERROR_MESSAGE.format(key=self.key, expected=self.
            expected)
        return base_message + error_message

"""Custom error for invalid config file value."""

from .Error import Error

ERROR_MESSAGE = """
Invalid configuration file value for: {key}

Expected: {expected}
"""


class InvalidYAMLValueError(Error):
    """Custom error for invalid config file value."""

    def __init__(self, yaml_file_path, key, expected):
        """Create error for invalid config file value."""
        super().__init__()
        self.yaml_file_path = yaml_file_path
        self.key = key
        self.expected = expected

    def __str__(self):
        """Override default error string.

        Returns:
            Error message for invalid config file value.
        """
        base_message = self.base_message.format(filename=self.yaml_file_path)
        error_message = ERROR_MESSAGE.format(key=self.key, expected=self.expected)
        return base_message + error_message
