You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ClientExceptionHandler.java 689B

123456789101112131415161718192021222324252627282930
  1. /*
  2. @ITMillApache2LicenseForJavaFiles@
  3. */
  4. package com.vaadin.terminal.gwt.client;
  5. public class ClientExceptionHandler {
  6. public static void displayError(Throwable e) {
  7. displayError(e.getClass().getName() + ": " + e.getMessage());
  8. e.printStackTrace();
  9. }
  10. public static void displayError(String msg) {
  11. Console console = ApplicationConnection.getConsole();
  12. if (console != null) {
  13. console.error(msg);
  14. // } else {
  15. // System.err.println(msg);
  16. }
  17. }
  18. public static void displayError(String msg, Throwable e) {
  19. displayError(msg);
  20. displayError(e);
  21. }
  22. }