lib/socketry/exceptions.rb in socketry-0.2.0 vs lib/socketry/exceptions.rb in socketry-0.3.0

- old
+ new

@@ -1,9 +1,12 @@ # frozen_string_literal: true module Socketry # Generic catch all for all Socketry errors - Error = Class.new(::IOError) + Error = Class.new(StandardError) + + # Failed to connect to a remote host + ConnectionRefusedError = Class.new(Socketry::Error) # Invalid address AddressError = Class.new(Socketry::Error) # Timeouts performing an I/O operation