Exception: Purl::RegistryError
- Defined in:
- lib/purl/errors.rb
Overview
Registry URL generation errors
Contains additional context about which type caused the error.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#type ⇒ String?
readonly
The PURL type that caused the error.
Instance Method Summary collapse
-
#initialize(message, type: nil) ⇒ RegistryError
constructor
A new instance of RegistryError.
Constructor Details
#initialize(message, type: nil) ⇒ RegistryError
Returns a new instance of RegistryError.
81 82 83 84 |
# File 'lib/purl/errors.rb', line 81 def initialize(, type: nil) super() @type = type end |
Instance Attribute Details
#type ⇒ String? (readonly)
Returns the PURL type that caused the error.
77 78 79 |
# File 'lib/purl/errors.rb', line 77 def type @type end |