Exception: Timeprice::UnsupportedSchemaVersion

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

Overview

Raised when a bundled data file declares a schema_version this gem doesn’t know how to parse (forward-compat guard).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(version, path) ⇒ UnsupportedSchemaVersion

Returns a new instance of UnsupportedSchemaVersion.



53
54
55
56
57
# File 'lib/timeprice/errors.rb', line 53

def initialize(version, path)
  @version = version
  @path = path
  super("Unsupported schema_version #{version.inspect} in #{path}")
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



51
52
53
# File 'lib/timeprice/errors.rb', line 51

def path
  @path
end

#versionObject (readonly)

Returns the value of attribute version.



51
52
53
# File 'lib/timeprice/errors.rb', line 51

def version
  @version
end