class Mongo::Error::InvalidNonce
This exception is raised when the server nonce returned does not match the client nonce sent to it.
@since 2.0.0
Attributes
nonce[R]
@return [ String ] nonce The client nonce.
rnonce[R]
@return [ String ] rnonce The server nonce.
Public Class Methods
new(nonce, rnonce)
click to toggle source
Instantiate the new exception.
@example Create the exception.
InvalidNonce.new(nonce, rnonce)
@param [ String ] nonce The client nonce. @param [ String ] rnonce The server nonce.
@since 2.0.0
Calls superclass method
Mongo::Error::new
# File lib/mongo/error/invalid_nonce.rb, line 39 def initialize(nonce, rnonce) @nonce = nonce @rnonce = rnonce super("Expected server rnonce '#{rnonce}' to start with client nonce '#{nonce}'.") end