lib/mongo/crypt/status.rb
def raise_crypt_error
        return if ok?

        error = case label
        when :error_kms
          Error::CryptKmsError.new(code, message)
        when :error_client
          Error::CryptClientError.new(code, message)
        end

        raise error
      end
# Raises a Mongo::Error:CryptError corresponding to the
# information stored in this status
#
# Does nothing if self.ok? is true
Raises a Mongo::Error:CryptError corresponding to the
information stored in this status


Raises a Mongo :: Error : CryptError corresponding to the information stored in this status
def raise_crypt_error
        return if ok?
        error = case label
        when :error_kms
          Error::CryptKmsError.new(code, message)
        when :error_client
          Error::CryptClientError.new(code, message)
        end
        raise error
      end
def raise_crypt_error return if ok? error = case label when :error_kms Error :: CryptKmsError . new ( code , message ) when :error_client Error :: CryptClientError . new ( code , message ) end raise error end
Raises a Mongo::Error:CryptError corresponding to the
information stored in this status
Raises a Mongo :: Error : CryptError corresponding to the information stored in this status