Example usage for com.google.gwt.libideas.logging.shared Log severe

List of usage examples for com.google.gwt.libideas.logging.shared Log severe

Introduction

In this page you can find the example usage for com.google.gwt.libideas.logging.shared Log severe.

Prototype

public static void severe(String msg) 

Source Link

Document

Log a SEVERE message.

Usage

From source file:com.google.gwt.widgetideas.demo.collapsiblepanel.client.CollapsiblePanelDemo.java

License:Apache License

/**
 * This is the entry point method./*from   www  . j a  v a2 s.c om*/
 */
public void onModuleLoad() {
    try {

        // Some random contents to make the tree interesting.
        Panel contents = createSchoolNavBar();
        FastTree.addDefaultCSS();

        // The panel.
        final CollapsiblePanel panel = new CollapsiblePanel();
        String value = Location.getParameter("collapsed");
        if (value != null) {
            value = value.trim();
            if (value.equals("true")) {
                panel.setCollapsedState(true);
            } else if (value.equals("false")) {
                // do nothing, default.
            } else {
                Window.alert("collapsed should not be given " + value + " use true or false instead");
            }
        }
        RootPanel.get("collapsible-panel").add(panel);
        panel.add(contents);
        panel.setWidth("200px");
        panel.hookupControlToggle(controlButton);
    } catch (RuntimeException e) {
        if (GWT.isScript()) {
            Log.severe(e.getMessage());
        }
        throw e;
    }
}

From source file:com.parabay.client.ui.components.WallToWallPanel.java

License:Apache License

protected void updateErrors(IDataEvent event) {

    if (event.getStatus() > 0) {

        Log.severe("Server errror status: " + String.valueOf(event.getStatus()));

        if (!this.hasErrors) {
            clear();//from   w w w.jav a 2 s .  c  o  m
            this.add(new PanelLabel(l10n("Failed to load data.")));
        }

        this.hasErrors = true;
    }
}