0 Replies - 1358 Views - Last Post: 07 March 2016 - 08:56 AM Rate Topic: -----

#1 servosiplex  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 07-March 16

Error with class SocketError < StandardError

Posted 07 March 2016 - 08:56 AM

Can any one help me?
it pops out the same error over and over! and I do not know what to do any more!
and the error is:

Script '(RMX-OS) Script' line 2481 Errno::ECONNRESET occurred
An existing connection was forcibly closed by the remote host

This is the code
--------------------------------------------------------------------------------------------------------------------
class SocketError < StandardError
  
  ENOASSOCHOST = 'getaddrinfo: no address associated with hostname.'
  
  def self.check
    errno = Winsock.WSAGetLastError
    raise Errno.const_get(Errno.constants.detect {|c|
      Errno.const_get(c).new.errno == errno}
    )
  end
  
end

class Hangup < Exception
end

-------------------------------------------------------------------------------------------------------------------
The error shows tha is somewhere here

Errno.const_get©.new.errno == errno} after this line!!

----------> ) <-------------------------------

Is This A Good Question/Topic? 0
  • +

Page 1 of 1