// TranslateNetstackError converts an error from the tcpip package to a sentry
// internal error.
TranslateNetstackError converts an error from the tcpip package to a sentry
internal error.
// TranslateNetstackError converts an error from the tcpip package to a sentry // internal error .
func TranslateNetstackError(err *tcpip.Error) *Error {
	if err == nil {
		return nil
	}
	se, ok := netstackErrorTranslations[err]
	if !ok {
		panic("Unknown error: " + err.String())
	}
	return se
}
func TranslateNetstackError ( err * tcpip . Error ) * Error { if err == nil { return nil } se , ok := netstackErrorTranslations [ err ] if ! ok { panic ( " " + err . String ( ) ) } return se }
TranslateNetstackError converts an error from the tcpip package to a sentry
internal error.
TranslateNetstackError converts an error from the tcpip package to a sentry internal error .