# 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)
                ``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))

        return settings.CODEMIRROR_MODES.get(name)

    def resolve_theme(self, name):
        """
        From given theme name, return theme file path from
        ``settings.CODEMIRROR_THEMES`` map.

        Arguments:
            name (string): Theme name.

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

        Returns:
            string: Theme file path.
        """
        if name not in settings.CODEMIRROR_THEMES:
            msg = ("Given theme name '{}' does not exists in "
                   "'settings.CODEMIRROR_THEMES'.")

# 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)

                ``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))

        return settings.CODEMIRROR_MODES.get(name)

    def resolve_theme(self, name):
        """
        From given theme name, return theme file path from
        ``settings.CODEMIRROR_THEMES`` map.

        Arguments:
            name (string): Theme name.

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

        Returns:
            string: Theme file path.
        """
        if name not in settings.CODEMIRROR_THEMES:
            msg = ("Given theme name '{}' does not exists in "
                   "'settings.CODEMIRROR_THEMES'.")

            raise UnknowThemeError(msg.format(name))