MCPcopy Index your code
hub / github.com/apache/tomcat / getMessage

Method getMessage

java/org/apache/jasper/compiler/Localizer.java:56–66  ·  view source on GitHub ↗

Returns the localized error message corresponding to the given error code. If the given error code is not defined in the resource bundle for localized error messages, it is used as the error message. @param errCode Error code to localize @return Localized error message

(String errCode)

Source from the content-addressed store, hash-verified

54 * @return Localized error message
55 */
56 public static String getMessage(String errCode) {
57 String errMsg = errCode;
58 try {
59 if (bundle != null) {
60 errMsg = bundle.getString(errCode);
61 }
62 } catch (MissingResourceException e) {
63 // Ignore
64 }
65 return errMsg;
66 }
67
68 /**
69 * Returns the localized error message corresponding to the given error code.

Callers 15

getAttributeMethod · 0.95
removeAttributeMethod · 0.95
setAttributeMethod · 0.95
createCompilerMethod · 0.95
getLastModifiedMethod · 0.95
compileMethod · 0.95
loadMethod · 0.95
createOutputDirMethod · 0.95
mainMethod · 0.95
setArgsMethod · 0.95
setThreadCountMethod · 0.95
generateWebMappingMethod · 0.95

Calls 2

getStringMethod · 0.65
formatMethod · 0.65

Tested by 3

getAttributeMethod · 0.76
removeAttributeMethod · 0.76
setAttributeMethod · 0.76