Exception: DTK::ErrorUserInputNeeded
- Inherits:
-
ErrorUsage
- Object
- NameError
- Error
- ErrorUsage
- DTK::ErrorUserInputNeeded
- Defined in:
- lib/errors/errors.rb
Constant Summary
Constants inherited from Error
DTK::Error::CallerOffset, DTK::Error::DefaultCallerDepth
Instance Method Summary collapse
-
#initialize(needed_inputs) ⇒ ErrorUserInputNeeded
constructor
A new instance of ErrorUserInputNeeded.
- #to_s ⇒ Object
Methods inherited from Error
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_s ⇒ Object
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 |