Class: DTK::Client::Response::Error::Usage

Inherits:
DTK::Client::Response::Error show all
Defined in:
lib/domain/response.rb

Instance Attribute Summary

Attributes inherited from DTK::Client::Response

#print_error_table, #render_view, #skip_render

Instance Method Summary collapse

Methods inherited from DTK::Client::Response

#array_to_string, #clone_me, #get_custom_labels, #get_label_for_column_name, handle_error_in_wrapper, #override_command_class, #render_arg_list!, #render_custom_info, #render_data, #render_table, #render_workspace_node_info, #response_datatype, #set_datatype, #symbol_to_data_type_upcase, wrap_helper_actions

Methods included from DTK::Client::Response::ErrorHandlerMixin

#error_info?

Constructor Details

#initialize(hash_or_string = {}) ⇒ Usage

Returns a new instance of Usage.



266
267
268
269
# File 'lib/domain/response.rb', line 266

def initialize(hash_or_string={})
  hash = (hash_or_string.kind_of?(String) ? {'message' => hash_or_string} : hash_or_string)
  super({"code" => "error"}.merge(hash))
end