Sha256: 3b04904569be6b0ad468a52d7b1814003f12c77ba1c4ae2aba434bbde5bca4b1

Contents?: true

Size: 299 Bytes

Versions: 7

Compression:

Stored size: 299 Bytes

Contents

module RailsConnector

  class BackendNotAvailable < StandardError
    attr_reader :http_code

    def self.from_socket_error(socket_error)
      new(socket_error.message, 503)
    end

    def initialize(message, http_code)
      @http_code = http_code.to_i
      super(message)
    end
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
infopark_cloud_connector-7.0.2 lib/rails_connector/backend_not_available.rb
infopark_cloud_connector-7.0.1 lib/rails_connector/backend_not_available.rb
infopark_cloud_connector-7.0.0 lib/rails_connector/backend_not_available.rb
infopark_cloud_connector-6.9.5 lib/rails_connector/backend_not_available.rb
infopark_cloud_connector-6.9.4 lib/rails_connector/backend_not_available.rb
infopark_cloud_connector-6.9.3.1.36404185 lib/rails_connector/backend_not_available.rb
infopark_cloud_connector-6.9.2.1.125136549 lib/rails_connector/backend_not_available.rb