summaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/terminal/gwt/client/ClientExceptionHandler.java
blob: 002c73343a8c414d2681de838436122c5ea92bcc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
@VaadinApache2LicenseForJavaFiles@
 */
package com.vaadin.terminal.gwt.client;

import com.google.gwt.core.client.GWT;

@Deprecated
public class ClientExceptionHandler {

    public static void displayError(Throwable e) {
        displayError(e.getClass().getName() + ": " + e.getMessage());

        GWT.log(e.getMessage(), e);
    }

    @Deprecated
    public static void displayError(String msg) {
        VConsole.error(msg);
        GWT.log(msg);
    }

    @Deprecated
    public static void displayError(String msg, Throwable e) {
        displayError(msg);
        displayError(e);

    }

}