Exception: Apiwork::HttpError

Inherits:
ConstraintError show all
Defined in:
lib/apiwork/http_error.rb

Instance Attribute Summary collapse

Attributes inherited from ConstraintError

#issues

Instance Method Summary collapse

Methods inherited from ConstraintError

#status

Constructor Details

#initialize(issues, error_code) ⇒ HttpError

Returns a new instance of HttpError.



7
8
9
10
# File 'lib/apiwork/http_error.rb', line 7

def initialize(issues, error_code)
  @error_code = error_code
  super(issues)
end

Instance Attribute Details

#error_codeObject (readonly)

Returns the value of attribute error_code.



5
6
7
# File 'lib/apiwork/http_error.rb', line 5

def error_code
  @error_code
end

Instance Method Details

#layerObject



12
13
14
# File 'lib/apiwork/http_error.rb', line 12

def layer
  :http
end