class Mongo::InvalidSignature
This exception is raised when the server verifier does not match the expected signature on the client.
@since 1.12.0
Attributes
server_signature[R]
@return [ String ] #server_signature The expected server signature.
verifier[R]
@return [ String ] verifier The server verifier string.
Public Class Methods
new(verifier, server_signature)
click to toggle source
Create the new exception.
@example Create the new exception.
InvalidSignature.new(verifier, server_signature)
@param [ String ] verifier The verifier returned from the server. @param [ String ] #server_signature The expected value from the
server.
@since 1.12.0
Calls superclass method
Mongo::MongoDBError.new
# File lib/mongo/exception.rb, line 139 def initialize(verifier, server_signature) @verifier = verifier @server_signature = server_signature super("Expected server verifier '#{verifier}' to match '#{server_signature}'.") end