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