Exception: Krill::KrillError
- Inherits:
-
KrillBaseError
- Object
- StandardError
- KrillBaseError
- Krill::KrillError
- Defined in:
- lib/krill/protocol_sandbox.rb
Overview
Exception class for errors during execution of protocols
Instance Attribute Summary collapse
- #job ⇒ Object readonly
Attributes inherited from KrillBaseError
#error, #namespace, #operation_type
Instance Method Summary collapse
-
#initialize(job:, error:, message: 'Error executing protocol', namespace: '') ⇒ KrillError
constructor
Create a KrillError object for the given job and exception with an optional message.
Methods inherited from KrillBaseError
#error_backtrace, #error_message, #operation_path
Constructor Details
#initialize(job:, error:, message: 'Error executing protocol', namespace: '') ⇒ KrillError
Create a KrillError object for the given job and exception with an optional message.
218 219 220 221 222 223 224 225 226 |
# File 'lib/krill/protocol_sandbox.rb', line 218 def initialize(job:, error:, message: 'Error executing protocol', namespace: '') @job = job super( operation_type: @job.operation_type, error: error, message: , namespace: namespace ) end |
Instance Attribute Details
#job ⇒ Object (readonly)
210 211 212 |
# File 'lib/krill/protocol_sandbox.rb', line 210 def job @job end |