class RemoteError < ::Protocol::HTTP::RemoteError

Inherits from
::Protocol::HTTP::RemoteError

Raised when the remote execution context reports an error.

Definitions

def self.dump(error)

Convert an exception into a transport-safe description.

Signature

parameter error Exception

The exception to describe.

returns Hash

A transport-safe error description.

Implementation

def self.dump(error)
	{
		class: error.class.name,
		message: error.message,
		backtrace: error.backtrace,
	}
end

def initialize(description)

Initialize a remote error from its description.

Signature

parameter description Hash

The remote error description.

Implementation

def initialize(description)
	@description = description
	
	super("#{description[:class]}: #{description[:message]}")
	self.set_backtrace(description[:backtrace]) if description[:backtrace]
end

attr :description

Signature

attribute Hash

The remote error description.