Exception: Tester::LocalTestException
- Inherits:
-
GlobalTestException
- Object
- StandardError
- APIException
- GlobalTestException
- Tester::LocalTestException
- Defined in:
- lib/tester/exceptions/local_test_exception.rb
Overview
To test specific local exceptions.
Instance Attribute Summary collapse
-
#secret_message_for_endpoint ⇒ String
Represents the specific endpoint info.
Attributes inherited from GlobalTestException
Attributes inherited from APIException
Instance Method Summary collapse
-
#initialize(reason, context) ⇒ LocalTestException
constructor
The constructor.
-
#unbox(hash) ⇒ Object
Populates this object by extracting properties from a hash.
Constructor Details
#initialize(reason, context) ⇒ LocalTestException
The constructor.
16 17 18 19 20 |
# File 'lib/tester/exceptions/local_test_exception.rb', line 16 def initialize(reason, context) super(reason, context) hash = APIHelper.json_deserialize(@context.response.raw_body) unbox(hash) end |
Instance Attribute Details
#secret_message_for_endpoint ⇒ String
Represents the specific endpoint info
11 12 13 |
# File 'lib/tester/exceptions/local_test_exception.rb', line 11 def @secret_message_for_endpoint end |
Instance Method Details
#unbox(hash) ⇒ Object
Populates this object by extracting properties from a hash. response body.
25 26 27 28 |
# File 'lib/tester/exceptions/local_test_exception.rb', line 25 def unbox(hash) super(hash) @secret_message_for_endpoint = hash['SecretMessageForEndpoint'] end |