Exception: TranslationDiff::ProviderError
- Defined in:
- lib/translation_diff/errors.rb
Direct Known Subclasses
AuthenticationError, InvalidRequestError, QuotaExceededError, RateLimitError, ServiceError
Instance Attribute Summary collapse
-
#provider ⇒ Object
readonly
Returns the value of attribute provider.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message, provider: nil, status: nil) ⇒ ProviderError
constructor
A new instance of ProviderError.
Constructor Details
#initialize(message, provider: nil, status: nil) ⇒ ProviderError
Returns a new instance of ProviderError.
17 18 19 20 21 |
# File 'lib/translation_diff/errors.rb', line 17 def initialize(, provider: nil, status: nil) super() @provider = provider @status = status end |
Instance Attribute Details
#provider ⇒ Object (readonly)
Returns the value of attribute provider.
15 16 17 |
# File 'lib/translation_diff/errors.rb', line 15 def provider @provider end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
15 16 17 |
# File 'lib/translation_diff/errors.rb', line 15 def status @status end |