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.



24
25
26
# File 'lib/cosmos/top_level.rb', line 24

def cmd_name
  @cmd_name
end

#cmd_paramsObject

Returns the value of attribute cmd_params.



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

def cmd_params
  @cmd_params
end

#hazardous_descriptionObject

Returns the value of attribute hazardous_description.



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

def hazardous_description
  @hazardous_description
end

#target_nameObject

Returns the value of attribute target_name.



23
24
25
# File 'lib/cosmos/top_level.rb', line 23

def target_name
  @target_name
end