Exception: Mongoid::Errors::NoEnvironment

Inherits:
MongoidError
  • Object
show all
Defined in:
build/mongoid-8.1/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


13
14
15
# File 'build/mongoid-8.1/lib/mongoid/errors/no_environment.rb', line 13

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