# 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)
            NotRegisteredError: If given config name does not exist in
            registry.

        Returns:
            dict: Configurations.
        """
        if name:
            if name not in self.registry:
                msg = "Given config name '{}' is not registered."
                raise NotRegisteredError(msg.format(name))

            return {name: self.registry[name]}
        return self.registry

    def get_config(self, name):
        """
        Return a registred configuration for given config name.

        Arguments:
            name (string): A registred config name.

        Raises:
            NotRegisteredError: If given config name does not exist in
            registry.

        Returns:
            dict: Configuration.
        """
        if name not in self.registry:
            msg = "Given config name '{}' is not registered."

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

            NotRegisteredError: If given config name does not exist in
            registry.

        Returns:
            dict: Configurations.
        """
        if name:
            if name not in self.registry:
                msg = "Given config name '{}' is not registered."
                raise NotRegisteredError(msg.format(name))

            return {name: self.registry[name]}
        return self.registry

    def get_config(self, name):
        """
        Return a registred configuration for given config name.

        Arguments:
            name (string): A registred config name.

        Raises:
            NotRegisteredError: If given config name does not exist in
            registry.

        Returns:
            dict: Configuration.
        """
        if name not in self.registry:
            msg = "Given config name '{}' is not registered."

            raise NotRegisteredError(msg.format(name))