Exception: Nostr::InvalidHRPError
- Inherits:
-
KeyValidationError
- Object
- StandardError
- Error
- KeyValidationError
- Nostr::InvalidHRPError
- Defined in:
- lib/nostr/errors/invalid_hrp_error.rb
Overview
Raised when the human readable part of a Bech32 string is invalid
Instance Method Summary collapse
-
#initialize(given_hrp, allowed_hrp) ⇒ InvalidHRPError
constructor
Initializes the error.
Constructor Details
#initialize(given_hrp, allowed_hrp) ⇒ InvalidHRPError
Initializes the error
17 18 19 |
# File 'lib/nostr/errors/invalid_hrp_error.rb', line 17 def initialize(given_hrp, allowed_hrp) super("Invalid hrp: #{given_hrp}. The allowed hrp value for this kind of entity is '#{allowed_hrp}'.") end |