Exception: FhirPackagesManager::HttpError
- Defined in:
- lib/fhir_packages_manager/errors.rb,
sig/fhir_packages_manager/errors.rbs
Overview
Raised for any non-2xx/3xx HTTP response from a registry.
Instance Attribute Summary collapse
-
#status ⇒ Integer?
readonly
The HTTP status code, or nil for a connection-level failure.
Instance Method Summary collapse
-
#initialize(message, status) ⇒ HttpError
constructor
A new instance of HttpError.
Constructor Details
#initialize(message, status) ⇒ HttpError
Returns a new instance of HttpError.
14 15 16 17 |
# File 'lib/fhir_packages_manager/errors.rb', line 14 def initialize(, status) super() @status = status end |
Instance Attribute Details
#status ⇒ Integer? (readonly)
Returns the HTTP status code, or nil for a connection-level failure.
10 11 12 |
# File 'lib/fhir_packages_manager/errors.rb', line 10 def status @status end |