class Stargate::Client::RemoteExecutionError

Public: Raised when data has been fetched but execution failed.

Attributes

cause_type[R]

Public Class Methods

from_hash(hash) click to toggle source
# File lib/stargate/client/remote_execution_error.rb, line 5
def self.from_hash(hash)
  hash.symbolize_keys!
  new(hash[:error], hash[:message])
end
new(cause_type, message) click to toggle source
Calls superclass method
# File lib/stargate/client/remote_execution_error.rb, line 12
def initialize(cause_type, message)
  @cause_type = cause_type
  super(message)
end

Public Instance Methods

inspect() click to toggle source
# File lib/stargate/client/remote_execution_error.rb, line 17
def inspect
  "#{self.class.name} caused by #{cause_type}: #{message}"
end