Exception: Virgil::Crypto::HashAlgorithm::UnknownAlgorithmException
- Inherits:
-
StandardError
- Object
- StandardError
- Virgil::Crypto::HashAlgorithm::UnknownAlgorithmException
- Defined in:
- lib/virgil/crypto/hash_algorithm.rb
Overview
Exception raised when Unknown Algorithm passed to converting method
Instance Method Summary collapse
-
#initialize(algorithm) ⇒ UnknownAlgorithmException
constructor
A new instance of UnknownAlgorithmException.
- #to_s ⇒ Object
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_s ⇒ Object
47 48 49 |
# File 'lib/virgil/crypto/hash_algorithm.rb', line 47 def to_s "KeyPairType not found: #{@algorithm}" end |