Exception: Mongoid::Errors::NoClientsConfig

Inherits:
MongoidError
  • Object
show all
Defined in:
build/mongoid-master/lib/mongoid/errors/no_clients_config.rb

Overview

This error is raised when no clients exists in the database configuration.

Constant Summary

Constants inherited from MongoidError

MongoidError::BASE_KEY

Instance Attribute Summary

Attributes inherited from MongoidError

#problem, #resolution, #summary

Instance Method Summary collapse

Methods inherited from MongoidError

#compose_message

Constructor Details

#initializeNoClientsConfig

Create the new error.

Examples:

Create the error.

NoClientsConfig.new

Since:

  • 3.0.0



17
18
19
# File 'build/mongoid-master/lib/mongoid/errors/no_clients_config.rb', line 17

def initialize
  super(compose_message("no_clients_config", {}))
end