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.
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.
117 118 119 120 121 122 123 |
# File 'lib/kobako/errors.rb', line 117 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.
115 116 117 |
# File 'lib/kobako/errors.rb', line 115 def backtrace_lines @backtrace_lines end |
#details ⇒ Object (readonly)
Returns the value of attribute details.
115 116 117 |
# File 'lib/kobako/errors.rb', line 115 def details @details end |
#klass ⇒ Object (readonly)
Returns the value of attribute klass.
115 116 117 |
# File 'lib/kobako/errors.rb', line 115 def klass @klass end |
#origin ⇒ Object (readonly)
Returns the value of attribute origin.
115 116 117 |
# File 'lib/kobako/errors.rb', line 115 def origin @origin end |