Class: Mongo::Error::InvalidApplicationName
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
Error
|
|
|
Instance Chain:
self,
Error
|
|
| Inherits: |
Error
|
| Defined in: | lib/mongo/error/invalid_application_name.rb |
Overview
This exception is raised when the metadata document sent to the server at the time of a connection handshake is invalid.
Class Method Summary
-
.new(app_name, max_size) ⇒ InvalidApplicationName
constructor
Instantiate the new exception.
Constructor Details
.new(app_name, max_size) ⇒ InvalidApplicationName
Instantiate the new exception.
# File 'lib/mongo/error/invalid_application_name.rb', line 33
def initialize(app_name, max_size) super("The provided application name '#{app_name}' cannot exceed #{max_size} bytes.") end