Exception: Transifex::TransifexError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(request_url, code, details) ⇒ TransifexError

Returns a new instance of TransifexError.



20
21
22
23
# File 'lib/transifex/errors.rb', line 20

def initialize(request_url, code, details)
  @request_url, @code, @details = request_url, code, details
  super(details) if details
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



18
19
20
# File 'lib/transifex/errors.rb', line 18

def code
  @code
end

#detailsObject (readonly)

Returns the value of attribute details.



18
19
20
# File 'lib/transifex/errors.rb', line 18

def details
  @details
end

#request_urlObject (readonly)

Returns the value of attribute request_url.



18
19
20
# File 'lib/transifex/errors.rb', line 18

def request_url
  @request_url
end