use of com.google.gwt.core.client.JavaScriptException in project gerrit by GerritCodeReview.
the class PluginName method findCallerUrl.
String findCallerUrl() {
JavaScriptException err = makeException();
if (hasStack(err)) {
return PluginNameMoz.getUrl(err);
}
String baseUrl = baseUrl();
StackTraceElement[] trace = getTrace(err);
for (int i = trace.length - 1; i >= 0; i--) {
String u = trace[i].getFileName();
if (u != null && u.startsWith(baseUrl)) {
return u;
}
}
return UNKNOWN;
}
Aggregations