Exception: Machinery::Errors::SystemDescriptionIncompatible

Inherits:
SystemDescriptionError show all
Defined in:
lib/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, format_version) ⇒ SystemDescriptionIncompatible

Returns a new instance of SystemDescriptionIncompatible.



43
44
45
46
# File 'lib/exceptions.rb', line 43

def initialize(name, format_version)
  @name = name
  @format_version = format_version
end

Instance Attribute Details

#format_versionObject (readonly)

Returns the value of attribute format_version.



41
42
43
# File 'lib/exceptions.rb', line 41

def format_version
  @format_version
end

#nameObject (readonly)

Returns the value of attribute name.



41
42
43
# File 'lib/exceptions.rb', line 41

def name
  @name
end

Instance Method Details

#to_sObject



48
49
50
51
52
# File 'lib/exceptions.rb', line 48

def to_s
  "The system description '#{@name}' has an incompatible data " \
  "format and can not be read.\n" \
  "Try '#{$0} upgrade-format #{name}' to upgrade it to the current version.\n"
end