Exception: HazardousError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/cosmos/top_level.rb

Overview

If a hazardous command is sent through the Cosmos::Api this error is raised. Cosmos::Script rescues the error and prompts the user to continue.

Instance Attribute Summary collapse

Instance Attribute Details

#cmd_nameObject

Returns the value of attribute cmd_name.



27
28
29
# File 'lib/cosmos/top_level.rb', line 27

def cmd_name
  @cmd_name
end

#cmd_paramsObject

Returns the value of attribute cmd_params.



28
29
30
# File 'lib/cosmos/top_level.rb', line 28

def cmd_params
  @cmd_params
end

#hazardous_descriptionObject

Returns the value of attribute hazardous_description.



29
30
31
# File 'lib/cosmos/top_level.rb', line 29

def hazardous_description
  @hazardous_description
end

#target_nameObject

Returns the value of attribute target_name.



26
27
28
# File 'lib/cosmos/top_level.rb', line 26

def target_name
  @target_name
end