from redbot.core import commands


class EmbedUtilsException(Exception):
    """Base class for EmbedUtils exceptions."""


class EmbedNotFound(EmbedUtilsException):
    """Raised when an embed isn't found on a message."""


class EmbedFileError(EmbedUtilsException):
    """Provides error messages when users supply invalid/no embed files."""


class EmbedConversionError(EmbedUtilsException):
    def __init__(self, ctx: commands.Context, error_type: str, error: Exception):
        self.ctx = ctx
        self.error_type = error_type
        self.error = error
        super().__init__(error)

from redbot.core import commands


class EmbedUtilsException(Exception):
    """Base class for EmbedUtils exceptions."""


class EmbedNotFound(EmbedUtilsException):
    """Raised when an embed isn't found on a message."""


class EmbedFileError(EmbedUtilsException):
    """Provides error messages when users supply invalid/no embed files."""


class EmbedConversionError(EmbedUtilsException):
    def __init__(self, ctx: commands.Context, error_type: str, error: Exception):
        self.ctx = ctx
        self.error_type = error_type
        self.error = error
        super().__init__(error)

Base class for EmbedUtils exceptions. Raised when an embed isn't found on a message. Provides error messages when users supply invalid/no embed files.