Exception: AnalyticsOps::Error
- Inherits:
-
StandardError
- Object
- StandardError
- AnalyticsOps::Error
- Defined in:
- lib/analytics_ops/errors.rb,
sig/analytics_ops.rbs
Overview
Base for every expected, safely reportable Analytics Ops failure.
Direct Known Subclasses
AuthenticationError, AuthorizationError, ConfigurationError, ConfirmationRequiredError, ConflictError, InvalidPlanError, InvalidRequestError, PartialApplyError, QuotaError, RemoteError, StalePlanError, TimeoutError, UnsupportedCapabilityError
Instance Attribute Summary collapse
-
#remote_code ⇒ String?
readonly
Returns the value of attribute remote_code.
-
#remote_metadata ⇒ record
readonly
Returns the value of attribute remote_metadata.
-
#remote_reason ⇒ String?
readonly
Returns the value of attribute remote_reason.
Instance Method Summary collapse
-
#initialize(message = nil, remote_reason: nil, remote_metadata: nil, remote_code: nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message = nil, remote_reason: nil, remote_metadata: nil, remote_code: nil) ⇒ Error
Returns a new instance of Error.
12 13 14 15 16 17 |
# File 'lib/analytics_ops/errors.rb', line 12 def initialize( = nil, remote_reason: nil, remote_metadata: nil, remote_code: nil) @remote_reason = safe_remote_value(remote_reason, 128) @remote_metadata = () @remote_code = safe_remote_value(remote_code, 64) super() end |
Instance Attribute Details
#remote_code ⇒ String? (readonly)
Returns the value of attribute remote_code.
10 11 12 |
# File 'lib/analytics_ops/errors.rb', line 10 def remote_code @remote_code end |
#remote_metadata ⇒ record (readonly)
Returns the value of attribute remote_metadata.
10 11 12 |
# File 'lib/analytics_ops/errors.rb', line 10 def @remote_metadata end |
#remote_reason ⇒ String? (readonly)
Returns the value of attribute remote_reason.
10 11 12 |
# File 'lib/analytics_ops/errors.rb', line 10 def remote_reason @remote_reason end |