Exception: Purl::UnsupportedTypeError

Inherits:
RegistryError show all
Defined in:
lib/purl/errors.rb

Instance Attribute Summary collapse

Attributes inherited from RegistryError

#type

Instance Method Summary collapse

Constructor Details

#initialize(message, type: nil, supported_types: []) ⇒ UnsupportedTypeError

Returns a new instance of UnsupportedTypeError.



47
48
49
50
# File 'lib/purl/errors.rb', line 47

def initialize(message, type: nil, supported_types: [])
  super(message, type: type)
  @supported_types = supported_types
end

Instance Attribute Details

#supported_typesObject (readonly)

Returns the value of attribute supported_types.



45
46
47
# File 'lib/purl/errors.rb', line 45

def supported_types
  @supported_types
end