# File lib/aws/lazy_error_classes.rb, line 25
      def const_missing(name)
        base_error_grammar = self::BASE_ERROR_GRAMMAR
        const_missing_mutex.synchronize do
          return if const_defined?(name)
          const_set(name,
                    Class.new(self::Base) do
                      include Errors::ModeledError

                      # so that MyService::Errors::Foo::Bar will work
                      const_set(:BASE_ERROR_GRAMMAR, base_error_grammar)
                      include LazyErrorClasses
                    end)
        end
      end