Exception: Kobako::ServiceError

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

Overview

Service layer. Raised when a Service capability call inside a mruby script reported an application-level failure that the script did not rescue.

Direct Known Subclasses

Disconnected

Defined Under Namespace

Classes: Disconnected

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of ServiceError.



60
61
62
63
64
65
66
# File 'lib/kobako/errors.rb', line 60

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.



58
59
60
# File 'lib/kobako/errors.rb', line 58

def backtrace_lines
  @backtrace_lines
end

#detailsObject (readonly)

Returns the value of attribute details.



58
59
60
# File 'lib/kobako/errors.rb', line 58

def details
  @details
end

#klassObject (readonly)

Returns the value of attribute klass.



58
59
60
# File 'lib/kobako/errors.rb', line 58

def klass
  @klass
end

#originObject (readonly)

Returns the value of attribute origin.



58
59
60
# File 'lib/kobako/errors.rb', line 58

def origin
  @origin
end