Exception: FhirPackagesManager::HttpError

Inherits:
Error
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(message, status) ⇒ HttpError

Returns a new instance of HttpError.

Parameters:

  • message (String)
  • status (Integer, nil)


14
15
16
17
# File 'lib/fhir_packages_manager/errors.rb', line 14

def initialize(message, status)
  super(message)
  @status = status
end

Instance Attribute Details

#statusInteger? (readonly)

Returns the HTTP status code, or nil for a connection-level failure.

Returns:

  • (Integer, nil)

    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