Exception: Virgil::Crypto::HashAlgorithm::UnknownAlgorithmException

Inherits:
StandardError
  • Object
show all
Defined in:
lib/virgil/crypto/hash_algorithm.rb

Overview

Exception raised when Unknown Algorithm passed to converting method

Instance Method Summary collapse

Constructor Details

#initialize(algorithm) ⇒ UnknownAlgorithmException

Returns a new instance of UnknownAlgorithmException.



42
43
44
45
# File 'lib/virgil/crypto/hash_algorithm.rb', line 42

def initialize(algorithm)
  @algorithm = algorithm
  super
end

Instance Method Details

#to_sObject



47
48
49
# File 'lib/virgil/crypto/hash_algorithm.rb', line 47

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