Exception: KDL::UnsupportedVersionError

Inherits:
Error
  • Object
show all
Defined in:
lib/kdl/error.rb

Instance Attribute Summary collapse

Attributes inherited from Error

#column, #filename, #line

Instance Method Summary collapse

Constructor Details

#initialize(message, version = nil, filename = nil) ⇒ UnsupportedVersionError

Returns a new instance of UnsupportedVersionError.



30
31
32
33
# File 'lib/kdl/error.rb', line 30

def initialize(message, version = nil, filename = nil)
  super(message, filename, 1, 1)
  @version = version
end

Instance Attribute Details

#versionObject (readonly)

Returns the value of attribute version.



28
29
30
# File 'lib/kdl/error.rb', line 28

def version
  @version
end