git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@14315 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2009-01-09 21:52:09 +00:00
1 parent 4b2f0f145e
commit 86b921ec0a
2 files changed
+14 -1

No files matched your search

+11
View File
@@ -323,6 +323,17 @@ public class Util {
return null; // no message
}
/**
* Gets a human readable mesasge for the given Win32 error code.
*
* @return
* null if no such message is available.
*/
public static String getWin32ErrorMessage(int n) {
ResourceBundle rb = ResourceBundle.getBundle("/hudson/win32errors");
return rb.getString("error"+n);
}
/**
* Guesses the current host name.
*/