from __future__ import annotations


class ServiceError(Exception):
    """Base service exception."""


class NotFoundError(ServiceError):
    """Raised when a resource cannot be located."""


class ForbiddenError(ServiceError):
    """Raised when an action is not permitted for the caller."""


class ValidationError(ServiceError):
    """Raised when input data is invalid."""
