Exception: Moxml::Signature::DuplicateAlgorithm

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(category, uri) ⇒ DuplicateAlgorithm

Returns a new instance of DuplicateAlgorithm.



22
23
24
25
26
# File 'lib/moxml/signature/errors.rb', line 22

def initialize(category, uri)
  @category = category
  @uri = uri
  super("Algorithm already registered for #{category}: #{uri}")
end

Instance Attribute Details

#categoryObject (readonly)

Returns the value of attribute category.



20
21
22
# File 'lib/moxml/signature/errors.rb', line 20

def category
  @category
end

#uriObject (readonly)

Returns the value of attribute uri.



20
21
22
# File 'lib/moxml/signature/errors.rb', line 20

def uri
  @uri
end