# Path: djangocodemirror/exceptions.py
# class NotRegisteredError(KeyError):
#     pass
# 
# class UnknowConfigError(KeyError):
#     pass
# 
# class UnknowModeError(KeyError):
#     pass
# 
# class UnknowThemeError(KeyError):
#     pass


import copy
from django.conf import settings
from .exceptions import (NotRegisteredError, UnknowConfigError,
                         UnknowModeError, UnknowThemeError)
            params.append(self.register(name))

        return params

    def autoregister(self):
        """
        Register every available configuration from
        ``settings.CODEMIRROR_SETTINGS``.
        """
        for name in settings.CODEMIRROR_SETTINGS:
            self.register(name)

    def resolve_mode(self, name):
        """
        From given mode name, return mode file path from
        ``settings.CODEMIRROR_MODES`` map.

        Arguments:
            name (string): Mode name.

        Raises:
            KeyError: When given name does not exist in
                ``settings.CODEMIRROR_MODES``.

        Returns:
            string: Mode file path.
        """
        if name not in settings.CODEMIRROR_MODES:
            msg = ("Given config name '{}' does not exists in "
                   "'settings.CODEMIRROR_MODES'.")

# Path: djangocodemirror/exceptions.py
# class NotRegisteredError(KeyError):
#     pass
# 
# class UnknowConfigError(KeyError):
#     pass
# 
# class UnknowModeError(KeyError):
#     pass
# 
# class UnknowThemeError(KeyError):
#     pass


# Path: djangocodemirror/manifest.py
import copy
from django.conf import settings
from .exceptions import (NotRegisteredError, UnknowConfigError,
                         UnknowModeError, UnknowThemeError)

            params.append(self.register(name))

        return params

    def autoregister(self):
        """
        Register every available configuration from
        ``settings.CODEMIRROR_SETTINGS``.
        """
        for name in settings.CODEMIRROR_SETTINGS:
            self.register(name)

    def resolve_mode(self, name):
        """
        From given mode name, return mode file path from
        ``settings.CODEMIRROR_MODES`` map.

        Arguments:
            name (string): Mode name.

        Raises:
            KeyError: When given name does not exist in
                ``settings.CODEMIRROR_MODES``.

        Returns:
            string: Mode file path.
        """
        if name not in settings.CODEMIRROR_MODES:
            msg = ("Given config name '{}' does not exists in "
                   "'settings.CODEMIRROR_MODES'.")

            raise UnknowModeError(msg.format(name))