Exception: DTK::Client::Execute::CommandProcessor::RestCall::Error
- Inherits:
-
ErrorUsage
- Object
- NameError
- DTK::Client::Error
- ErrorUsage
- DTK::Client::Execute::CommandProcessor::RestCall::Error
- Defined in:
- lib/execute/command_processor/rest_call.rb
Instance Method Summary collapse
-
#initialize(response_not_ok, rest_command) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(response_not_ok, rest_command) ⇒ Error
Returns a new instance of Error.
41 42 43 44 45 |
# File 'lib/execute/command_processor/rest_call.rb', line 41 def initialize(response_not_ok,rest_command) error_print_form = error_print_form(response_not_ok) error_msg = "Bad Rest response from call (#{rest_command.input_hash.inspect}:\n #{error_print_form}" super(error_msg) end |