Exception: DTK::ErrorUserInputNeeded

Inherits:
ErrorUsage show all
Defined in:
lib/errors/errors.rb

Constant Summary

Constants inherited from Error

DTK::Error::CallerOffset, DTK::Error::DefaultCallerDepth

Instance Method Summary collapse

Methods inherited from Error

#to_hash, top_error_in_hash

Constructor Details

#initialize(needed_inputs) ⇒ ErrorUserInputNeeded

Returns a new instance of ErrorUserInputNeeded.



84
85
86
87
# File 'lib/errors/errors.rb', line 84

def initialize(needed_inputs)
  super()
  @needed_inputs = needed_inputs
end

Instance Method Details

#to_sObject



88
89
90
91
92
93
94
# File 'lib/errors/errors.rb', line 88

def to_s()
  ret = "following inputs are needed:\n"
  @needed_inputs.each do |k,v|
    ret << "  #{k}: type=#{v[:type]}; description=#{v[:description]}\n"
  end
  ret
end