Exception: ZeroRuby::UnsupportedPushVersionError
- Defined in:
- lib/zero_ruby/errors.rb
Overview
Raised when pushVersion is not supported
Instance Attribute Summary collapse
-
#received_version ⇒ Object
readonly
Returns the value of attribute received_version.
-
#supported_version ⇒ Object
readonly
Returns the value of attribute supported_version.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(received_version, supported_version: 1) ⇒ UnsupportedPushVersionError
constructor
A new instance of UnsupportedPushVersionError.
Methods inherited from Error
Constructor Details
#initialize(received_version, supported_version: 1) ⇒ UnsupportedPushVersionError
Returns a new instance of UnsupportedPushVersionError.
52 53 54 55 56 |
# File 'lib/zero_ruby/errors.rb', line 52 def initialize(received_version, supported_version: 1) @received_version = received_version @supported_version = supported_version super("Unsupported push version: #{received_version}. Expected: #{supported_version}") end |
Instance Attribute Details
#received_version ⇒ Object (readonly)
Returns the value of attribute received_version.
50 51 52 |
# File 'lib/zero_ruby/errors.rb', line 50 def received_version @received_version end |
#supported_version ⇒ Object (readonly)
Returns the value of attribute supported_version.
50 51 52 |
# File 'lib/zero_ruby/errors.rb', line 50 def supported_version @supported_version end |