class DressSocks::SOCKSError
Public Class Methods
for_response_code(code)
click to toggle source
# File lib/dress_socks/errors.rb, line 48 def self.for_response_code(code) case code when 1 ServerFailure when 2 NotAllowed when 3 NetworkUnreachable when 4 HostUnreachable when 5 ConnectionRefused when 6 TTLExpired when 7 CommandNotSupported when 8 AddressTypeNotSupported else self end end
new(msg)
click to toggle source
Calls superclass method
# File lib/dress_socks/errors.rb, line 3 def initialize(msg) super end