class NliPipeline::SystemWrapper::CallWrapperError
handles errors for system calls
Public Class Methods
new(**kwargs)
click to toggle source
use StandardError::initialize to assign kwargs to output
Calls superclass method
# File lib/nli_pipeline/system_wrapper/call_wrapper_error.rb, line 25 def initialize(**kwargs) init_with_attrs(**kwargs) super("#{msg}:\n'#{call}'\nExited with code: #{code}") end
required_args()
click to toggle source
@see NliPipeline::AbstractUtil#init_with_attrs
@see NliPipeline::AbstractUtil::ClassMethods#required_args?
@return [Array]
# File lib/nli_pipeline/system_wrapper/call_wrapper_error.rb, line 20 def self.required_args %i[call code] end
supported_args()
click to toggle source
static methods required by NliPipeline::AbstractUtil::init_attrs @see NliPipeline::AbstractUtil#init_with_attrs
@see NliPipeline::AbstractUtil#get_allowed_args @return [Hash]
# File lib/nli_pipeline/system_wrapper/call_wrapper_error.rb, line 13 def self.supported_args { call: '', code: 0, msg: 'An error occurred during system call' } end