Exception: Ppp::Generator::NotHexKey

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/ppp/generator.rb

Constant Summary collapse

@@error =
'Expected a 64 digit hex-string, but got "%s". Use Ppp.key_from_string() to generate a useable hex-string from an arbitrary string.'

Instance Method Summary collapse

Constructor Details

#initialize(key) ⇒ NotHexKey

Returns a new instance of NotHexKey.



65
# File 'lib/ppp/generator.rb', line 65

def initialize( key ) @key = key     end

Instance Method Details

#to_sObject



67
# File 'lib/ppp/generator.rb', line 67

def to_s()            @@error % @key end