if(errors != null && !errors.isEmpty()) {
final SafeHtmlBuilder b = new SafeHtmlBuilder();
for (final EditorError error : errors) {
if(error.getPath() != null && !"".equals(error.getPath())) {
final Object userData = error.getUserData();
b.appendEscaped(error.getPath()).appendEscaped(": ");
}
b.appendEscaped(error.getMessage()).appendEscaped("\n");
}
Window.alert(b.toSafeHtml().asString());
}