Class: CloudRailSi::ServiceCode::ThrowError
- Inherits:
-
Object
- Object
- CloudRailSi::ServiceCode::ThrowError
- Defined in:
- lib/cloudrail_si/servicecode/commands/ThrowError.rb
Instance Method Summary collapse
Instance Method Details
#execute(environment, parameters) ⇒ Object
10 11 12 13 14 |
# File 'lib/cloudrail_si/servicecode/commands/ThrowError.rb', line 10 def execute(environment, parameters) Helper.assert(parameters.length < 2) error_obj = Helper.resolve(environment, parameters[0]) if (parameters.length > 0) environment.set_thrown_error(error_obj) end |
#get_identifier ⇒ Object
6 7 8 |
# File 'lib/cloudrail_si/servicecode/commands/ThrowError.rb', line 6 def get_identifier 'throwError' end |