Method: Mongo::Server::AppMetadata::Environment#error

Defined in:
lib/mongo/server/app_metadata/environment.rb

#errorString | nil

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Note:

These error messagess are not to be propogated to the user; they are intended only for troubleshooting and debugging.)

Returns the error message explaining why a valid FaaS environment was not detected, or nil if no error occurred.

Returns:

  • (String | nil)

    the error message explaining why a valid FaaS environment was not detected, or nil if no error occurred.

Since:

  • 2.0.0



105
106
107
# File 'lib/mongo/server/app_metadata/environment.rb', line 105

def error
  @error
end