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

Instance Method Summary collapse

Constructor Details

#initialize(key_kind) ⇒ InvalidKeyTypeError

Initializes the error

Examples:

InvalidKeyTypeError.new('private')

Parameters:

  • key_kind (String)

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



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

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