Exception: Txgh::TransifexApiError
- Inherits:
-
StandardError
- Object
- StandardError
- Txgh::TransifexApiError
- Defined in:
- lib/txgh/errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
Instance Method Summary collapse
-
#initialize(message, status_code) ⇒ TransifexApiError
constructor
A new instance of TransifexApiError.
Constructor Details
#initialize(message, status_code) ⇒ TransifexApiError
Returns a new instance of TransifexApiError.
8 9 10 11 |
# File 'lib/txgh/errors.rb', line 8 def initialize(, status_code) super() @status_code = status_code end |
Instance Attribute Details
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code.
6 7 8 |
# File 'lib/txgh/errors.rb', line 6 def status_code @status_code end |