class Mongo::Error::InvalidSignature
This exception is raised when the server verifier does not match the expected signature on the client.
@since 2.0.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 2.0.0
Calls superclass method
Mongo::Error::new
# File lib/mongo/error/invalid_signature.rb, line 40 def initialize(verifier, server_signature) @verifier = verifier @server_signature = server_signature super("Expected server verifier '#{verifier}' to match '#{server_signature}'.") end