Class: ActiveHarness::Errors::ProviderError
- Defined in:
- lib/active_harness/core/errors.rb
Overview
Base for all provider-level failures — carries an optional error_code and metadata
Instance Attribute Summary collapse
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
Instance Method Summary collapse
-
#initialize(message = nil, error_code: nil, metadata: nil) ⇒ ProviderError
constructor
A new instance of ProviderError.
Constructor Details
#initialize(message = nil, error_code: nil, metadata: nil) ⇒ ProviderError
Returns a new instance of ProviderError.
15 16 17 18 19 |
# File 'lib/active_harness/core/errors.rb', line 15 def initialize( = nil, error_code: nil, metadata: nil) super() @error_code = error_code @metadata = end |
Instance Attribute Details
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
13 14 15 |
# File 'lib/active_harness/core/errors.rb', line 13 def error_code @error_code end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
13 14 15 |
# File 'lib/active_harness/core/errors.rb', line 13 def @metadata end |