Exception: ZeroRuby::UnsupportedPushVersionError

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

Overview

Raised when pushVersion is not supported

Instance Attribute Summary collapse

Attributes inherited from Error

#details

Instance Method Summary collapse

Methods inherited from Error

#error_type

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_versionObject (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_versionObject (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