Exception: Kobako::SandboxError

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

Overview

Sandbox / wire layer. Raised when the guest ran to completion but execution failed due to a mruby script error, a protocol fault, or a host-side wire decode failure on an otherwise valid outcome tag.

Direct Known Subclasses

HandleTableError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, origin: nil, klass: nil, backtrace_lines: nil, details: nil) ⇒ SandboxError

Returns a new instance of SandboxError.



45
46
47
48
49
50
51
# File 'lib/kobako/errors.rb', line 45

def initialize(message, origin: nil, klass: nil, backtrace_lines: nil, details: nil)
  super(message)
  @origin = origin
  @klass = klass
  @backtrace_lines = backtrace_lines
  @details = details
end

Instance Attribute Details

#backtrace_linesObject (readonly)

Returns the value of attribute backtrace_lines.



43
44
45
# File 'lib/kobako/errors.rb', line 43

def backtrace_lines
  @backtrace_lines
end

#detailsObject (readonly)

Returns the value of attribute details.



43
44
45
# File 'lib/kobako/errors.rb', line 43

def details
  @details
end

#klassObject (readonly)

Returns the value of attribute klass.



43
44
45
# File 'lib/kobako/errors.rb', line 43

def klass
  @klass
end

#originObject (readonly)

Returns the value of attribute origin.



43
44
45
# File 'lib/kobako/errors.rb', line 43

def origin
  @origin
end