Exception: Nostr::InvalidKeyTypeError

Inherits:
KeyValidationError show all
Defined in:
lib/nostr/errors/invalid_key_type_error.rb

Overview

Raised when the private key is not a string

API:

  • public

Instance Method Summary collapse

Constructor Details

#initialize(key_kind) ⇒ InvalidKeyTypeError

Initializes the error

Examples:

InvalidKeyTypeError.new('private')

Parameters:

  • The kind of key that is invalid (public or private)

API:

  • public



16
# File 'lib/nostr/errors/invalid_key_type_error.rb', line 16

def initialize(key_kind) = super("Invalid #{key_kind} key type")