Exception: Motion::IncompatibleClientError
- Defined in:
- lib/motion/errors.rb
Instance Attribute Summary collapse
-
#client_version ⇒ Object
readonly
Returns the value of attribute client_version.
-
#server_version ⇒ Object
readonly
Returns the value of attribute server_version.
Instance Method Summary collapse
-
#initialize(server_version, client_version) ⇒ IncompatibleClientError
constructor
A new instance of IncompatibleClientError.
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_version ⇒ Object (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_version ⇒ Object (readonly)
Returns the value of attribute server_version.
141 142 143 |
# File 'lib/motion/errors.rb', line 141 def server_version @server_version end |