Exception: Virgil::Crypto::KeyPairType::UnknownTypeException

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

Overview

Exception raised when Unknown Type passed to convertion method

Instance Method Summary collapse

Constructor Details

#initialize(key_pair_type) ⇒ UnknownTypeException

Returns a new instance of UnknownTypeException.



41
42
43
44
# File 'lib/virgil/crypto/key_pair_type.rb', line 41

def initialize(key_pair_type)
  @key_pair_type = key_pair_type
  super
end

Instance Method Details

#to_sObject



46
47
48
# File 'lib/virgil/crypto/key_pair_type.rb', line 46

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