Exception: Tilia::Http::ClientException

Inherits:
Exception
  • Object
show all
Defined in:
lib/tilia/http/client_exception.rb

Overview

This exception may be emitted by the HTTPClient class, in case there was a problem emitting the request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code) ⇒ ClientException

TODO: document



7
8
9
# File 'lib/tilia/http/client_exception.rb', line 7

def initialize(code)
  @code = code.to_i
end

Instance Attribute Details

#codeObject

TODO: document



12
13
14
# File 'lib/tilia/http/client_exception.rb', line 12

def code
  @code
end