< prev index next >
src/java.base/unix/native/libnet/net_util_md.c
Print this page
rev 14618 : 8158023: SocketExceptions contain too little information sometimes
@@ -270,19 +270,10 @@
return him6->sin6_scope_id == scope;
}
#endif
-
-void
-NET_ThrowByNameWithLastError(JNIEnv *env, const char *name,
- const char *defaultDetail) {
- char errmsg[255];
- sprintf(errmsg, "errno: %d, error: %s\n", errno, defaultDetail);
- JNU_ThrowByNameWithLastError(env, name, errmsg);
-}
-
void
NET_ThrowCurrent(JNIEnv *env, char *msg) {
NET_ThrowNew(env, errno, msg);
}
< prev index next >