Commits

Anonymous committed 68c9cd7

Mapping java.net.NoRouteToHostException. Fixes #1908. Thanks to Roderick Colenbrander for the patch.

  • Participants
  • Parent commits 207e3db
  • Branches 2.5

Comments (0)

Files changed (1)

 
 (java.net.BindException, ALL)            : lambda x: error(errno.EADDRINUSE, 'Address already in use'),
 (java.net.ConnectException, ALL)         : lambda x: error(errno.ECONNREFUSED, 'Connection refused'),
-(java.net.NoRouteToHostException, ALL)   : None,
+(java.net.NoRouteToHostException, ALL)   : lambda x: error(errno.EHOSTUNREACH, 'No route to host'),
 (java.net.PortUnreachableException, ALL) : None,
 (java.net.ProtocolException, ALL)        : None,
 (java.net.SocketException, ALL)          : java_net_socketexception_handler,