Exception: Mongoid::Errors::NoEnvironment

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

Overview

Raised when trying to load configuration with no RACK_ENV set

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

#initializeNoEnvironment

Create the new no environment error.

Examples:

Create the new no environment error.

NoEnvironment.new

Since:

  • 2.4.0



16
17
18
# File 'build/mongoid-7.3/lib/mongoid/errors/no_environment.rb', line 16

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