Exception: Motion::IncompatibleClientError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(server_version, client_version) ⇒ IncompatibleClientError

Returns a new instance of IncompatibleClientError.



143
144
145
146
147
148
149
150
151
152
153
# File 'lib/motion/errors.rb', line 143

def initialize(server_version, client_version)
  super(
    "The client version (#{client_version}) is newer than the server " \
    "version (#{server_version}). Please upgrade the Motion gem.\n" \
    "\n" \
    "Hint: Run `bundle add motion --version \">= #{client_version}\"`."
  )

  @server_version = server_version
  @client_version = client_version
end

Instance Attribute Details

#client_versionObject (readonly)

Returns the value of attribute client_version.



141
142
143
# File 'lib/motion/errors.rb', line 141

def client_version
  @client_version
end

#server_versionObject (readonly)

Returns the value of attribute server_version.



141
142
143
# File 'lib/motion/errors.rb', line 141

def server_version
  @server_version
end