Exception: Dozuki::InvalidFormat

Inherits:
StandardError
  • Object
show all
Defined in:
lib/dozuki/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opts = {}) ⇒ InvalidFormat

Returns a new instance of InvalidFormat.



16
17
18
19
20
21
# File 'lib/dozuki/exceptions.rb', line 16

def initialize(opts={})
  super "Cannot parse '#{opts[:value]}' to #{opts[:format]}"
  self.format = opts[:format]
  self.node = opts[:node]
  self.value = opts[:value]
end

Instance Attribute Details

#formatObject

Returns the value of attribute format.



14
15
16
# File 'lib/dozuki/exceptions.rb', line 14

def format
  @format
end

#nodeObject

Returns the value of attribute node.



14
15
16
# File 'lib/dozuki/exceptions.rb', line 14

def node
  @node
end

#valueObject

Returns the value of attribute value.



14
15
16
# File 'lib/dozuki/exceptions.rb', line 14

def value
  @value
end