Exception: Purl::UnsupportedTypeError
- Inherits:
-
RegistryError
- Object
- StandardError
- Error
- RegistryError
- Purl::UnsupportedTypeError
- Defined in:
- lib/purl/errors.rb
Overview
Raised when trying to generate registry URLs for unsupported types
Instance Attribute Summary collapse
-
#supported_types ⇒ Array<String>
readonly
List of supported types.
Attributes inherited from RegistryError
Instance Method Summary collapse
-
#initialize(message, type: nil, supported_types: []) ⇒ UnsupportedTypeError
constructor
A new instance of UnsupportedTypeError.
Constructor Details
#initialize(message, type: nil, supported_types: []) ⇒ UnsupportedTypeError
Returns a new instance of UnsupportedTypeError.
95 96 97 98 |
# File 'lib/purl/errors.rb', line 95 def initialize(, type: nil, supported_types: []) super(, type: type) @supported_types = supported_types end |
Instance Attribute Details
#supported_types ⇒ Array<String> (readonly)
Returns list of supported types.
90 91 92 |
# File 'lib/purl/errors.rb', line 90 def supported_types @supported_types end |