Exception: Purl::RegistryError

Inherits:
Error
  • Object
show all
Defined in:
lib/purl/errors.rb

Overview

Registry URL generation errors

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, type: nil) ⇒ RegistryError

Returns a new instance of RegistryError.



38
39
40
41
# File 'lib/purl/errors.rb', line 38

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

Instance Attribute Details

#typeObject (readonly)

Returns the value of attribute type.



36
37
38
# File 'lib/purl/errors.rb', line 36

def type
  @type
end