Class: Calendav::ParsingXMLError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(xml, original) ⇒ ParsingXMLError

Returns a new instance of ParsingXMLError.



9
10
11
12
13
14
# File 'lib/calendav/errors.rb', line 9

def initialize(xml, original)
  super original.message

  @xml = xml
  @original = original
end

Instance Attribute Details

#originalObject (readonly)

Returns the value of attribute original.



7
8
9
# File 'lib/calendav/errors.rb', line 7

def original
  @original
end

#xmlObject (readonly)

Returns the value of attribute xml.



7
8
9
# File 'lib/calendav/errors.rb', line 7

def xml
  @xml
end