@ CheckForNull public static String getWin32ErrorMessage ( int n ) { try { ResourceBundle rb = ResourceBundle . getBundle ( "/hudson/win32errors" ) ; return rb . getString ( "error" + n ) ; } catch ( MissingResourceException e ) { LOGGER . log ( Level . WARNING , "Failed to find resource bundle" , e ) ; return null ; } }
Gets a human readable message for the given Win32 error code .