Exception: Nostr::InvalidKeyFormatError
- Inherits:
-
KeyValidationError
- Object
- StandardError
- Error
- KeyValidationError
- Nostr::InvalidKeyFormatError
- Defined in:
- lib/nostr/errors/invalid_key_format_error.rb
Overview
Raised when the private key is in an invalid format
Instance Method Summary collapse
-
#initialize(key_kind) ⇒ InvalidKeyFormatError
constructor
Initializes the error.
Constructor Details
#initialize(key_kind) ⇒ InvalidKeyFormatError
Initializes the error
16 17 18 |
# File 'lib/nostr/errors/invalid_key_format_error.rb', line 16 def initialize(key_kind) super("Only lowercase hexadecimal characters are allowed in #{key_kind} keys.") end |