Exception: Nxo::Error::UnknownVersionError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Nxo::Error::UnknownVersionError
- Defined in:
- lib/nxo/error.rb
Instance Attribute Summary collapse
-
#actual ⇒ Object
readonly
Returns the value of attribute actual.
-
#expected ⇒ Object
readonly
Returns the value of attribute expected.
Instance Method Summary collapse
-
#initialize(actual, expected) ⇒ UnknownVersionError
constructor
A new instance of UnknownVersionError.
Constructor Details
#initialize(actual, expected) ⇒ UnknownVersionError
Returns a new instance of UnknownVersionError.
14 15 16 17 18 |
# File 'lib/nxo/error.rb', line 14 def initialize(actual, expected) super("Invalid version (got \"#{actual}\", expected \"#{expected}\")") @actual = actual @expected = expected end |
Instance Attribute Details
#actual ⇒ Object (readonly)
Returns the value of attribute actual.
20 21 22 |
# File 'lib/nxo/error.rb', line 20 def actual @actual end |
#expected ⇒ Object (readonly)
Returns the value of attribute expected.
20 21 22 |
# File 'lib/nxo/error.rb', line 20 def expected @expected end |