Exception: Virgil::SDK::Cryptography::Hashes::HashAlgorithm::UnknownAlgorithmException

Inherits:
StandardError
  • Object
show all
Defined in:
lib/virgil/sdk/cryptography/hashes/hash_algorithm.rb

Overview

Exception raised when Unknown Algorithm passed to convertion method

Instance Method Summary collapse

Constructor Details

#initialize(algorithm) ⇒ UnknownAlgorithmException

Returns a new instance of UnknownAlgorithmException



45
46
47
48
# File 'lib/virgil/sdk/cryptography/hashes/hash_algorithm.rb', line 45

def initialize(algorithm)
  @algorithm = algorithm
  super
end

Instance Method Details

#to_sObject



50
51
52
# File 'lib/virgil/sdk/cryptography/hashes/hash_algorithm.rb', line 50

def to_s
  "KeyPairType not found: #{@algorithm}"
end