Exception: Txgh::TransifexApiError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/txgh/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message, status_code)
  super(message)
  @status_code = status_code
end

Instance Attribute Details

#status_codeObject (readonly)

Returns the value of attribute status_code.



6
7
8
# File 'lib/txgh/errors.rb', line 6

def status_code
  @status_code
end