Exception: Machinery::Errors::SystemDescriptionIncompatible
- Inherits:
-
SystemDescriptionError
- Object
- StandardError
- MachineryError
- SystemDescriptionError
- Machinery::Errors::SystemDescriptionIncompatible
- Defined in:
- lib/exceptions.rb
Instance Attribute Summary collapse
-
#format_version ⇒ Object
readonly
Returns the value of attribute format_version.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, format_version) ⇒ SystemDescriptionIncompatible
constructor
A new instance of SystemDescriptionIncompatible.
- #to_s ⇒ Object
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_version ⇒ Object (readonly)
Returns the value of attribute format_version.
41 42 43 |
# File 'lib/exceptions.rb', line 41 def format_version @format_version end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
41 42 43 |
# File 'lib/exceptions.rb', line 41 def name @name end |
Instance Method Details
#to_s ⇒ Object
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 |