Exception: PublishingPlatformApi::HTTPErrorResponse
- Inherits:
-
BaseError
- Object
- StandardError
- BaseError
- PublishingPlatformApi::HTTPErrorResponse
show all
- Defined in:
- lib/publishing_platform_api/exceptions.rb
Overview
Superclass for all 4XX and 5XX errors
Instance Attribute Summary collapse
Instance Method Summary
collapse
Methods inherited from BaseError
#sentry_context
Constructor Details
#initialize(code, message = nil, error_details = nil, http_body = nil) ⇒ HTTPErrorResponse
Returns a new instance of HTTPErrorResponse.
28
29
30
31
32
33
|
# File 'lib/publishing_platform_api/exceptions.rb', line 28
def initialize(code, message = nil, error_details = nil, http_body = nil)
super(message)
@code = code
@error_details = error_details
@http_body = http_body
end
|
Instance Attribute Details
#code ⇒ Object
26
27
28
|
# File 'lib/publishing_platform_api/exceptions.rb', line 26
def code
@code
end
|
#error_details ⇒ Object
26
27
28
|
# File 'lib/publishing_platform_api/exceptions.rb', line 26
def error_details
@error_details
end
|
#http_body ⇒ Object
26
27
28
|
# File 'lib/publishing_platform_api/exceptions.rb', line 26
def http_body
@http_body
end
|