Exception: TranslationDiff::ProviderError

Inherits:
Error
  • Object
show all
Defined in:
lib/translation_diff/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message, provider: nil, status: nil)
  super(message)
  @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