Exception: Kobako::ServiceError
- 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
Defined Under Namespace
Classes: Disconnected
Instance Attribute Summary collapse
-
#backtrace_lines ⇒ Object
readonly
Returns the value of attribute backtrace_lines.
-
#details ⇒ Object
readonly
Returns the value of attribute details.
-
#klass ⇒ Object
readonly
Returns the value of attribute klass.
-
#origin ⇒ Object
readonly
Returns the value of attribute origin.
Instance Method Summary collapse
-
#initialize(message, origin: nil, klass: nil, backtrace_lines: nil, details: nil) ⇒ ServiceError
constructor
A new instance of ServiceError.
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(, origin: nil, klass: nil, backtrace_lines: nil, details: nil) super() @origin = origin @klass = klass @backtrace_lines = backtrace_lines @details = details end |
Instance Attribute Details
#backtrace_lines ⇒ Object (readonly)
Returns the value of attribute backtrace_lines.
58 59 60 |
# File 'lib/kobako/errors.rb', line 58 def backtrace_lines @backtrace_lines end |
#details ⇒ Object (readonly)
Returns the value of attribute details.
58 59 60 |
# File 'lib/kobako/errors.rb', line 58 def details @details end |
#klass ⇒ Object (readonly)
Returns the value of attribute klass.
58 59 60 |
# File 'lib/kobako/errors.rb', line 58 def klass @klass end |
#origin ⇒ Object (readonly)
Returns the value of attribute origin.
58 59 60 |
# File 'lib/kobako/errors.rb', line 58 def origin @origin end |