Exception: Apiwork::HttpError
- Inherits:
-
ConstraintError
- Object
- StandardError
- Error
- ConstraintError
- Apiwork::HttpError
- Defined in:
- lib/apiwork/http_error.rb
Instance Attribute Summary collapse
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
Attributes inherited from ConstraintError
Instance Method Summary collapse
-
#initialize(issues, error_code) ⇒ HttpError
constructor
A new instance of HttpError.
- #layer ⇒ Object
Methods inherited from ConstraintError
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_code ⇒ Object (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
#layer ⇒ Object
12 13 14 |
# File 'lib/apiwork/http_error.rb', line 12 def layer :http end |