class Mongo::Error::InvalidApplicationName
This exception is raised when the metadata document sent to the server
at the time of a connection handshake is invalid.
@since 2.4.0
Public Class Methods
new(app_name, max_size)
click to toggle source
Instantiate the new exception.
@example Create the exception.
InvalidApplicationName.new(app_name, 128)
@param [ String ] app_name The application name option. @param [ Integer ] max_size The max byte size of the application name.
@since 2.4.0
Calls superclass method
Mongo::Error::new
# 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