Search in sources :

Example 1 with GwtErrorProcessing

use of com.xenoage.utils.gwt.error.GwtErrorProcessing in project Zong by Xenoage.

the class WebApp method onModuleLoad.

/**
 * This is the entry point method.
 */
@Override
public void onModuleLoad() {
    instance = this;
    // init logging
    Log.init(new GwtLogProcessing(Zong.getNameAndVersion(appFirstName)));
    // init error handler
    Err.init(new GwtErrorProcessing());
    // init utils
    GwtZongPlatformUtils.init(new AsyncCallback() {

        @Override
        public void onSuccess() {
            step1_setup();
        }

        @Override
        public void onFailure(Exception ex) {
            log(fatal("Could not init platform utils", ex));
        }
    });
}
Also used : AsyncCallback(com.xenoage.utils.async.AsyncCallback) GwtErrorProcessing(com.xenoage.utils.gwt.error.GwtErrorProcessing) GwtLogProcessing(com.xenoage.utils.gwt.log.GwtLogProcessing) IOException(java.io.IOException)

Aggregations

AsyncCallback (com.xenoage.utils.async.AsyncCallback)1 GwtErrorProcessing (com.xenoage.utils.gwt.error.GwtErrorProcessing)1 GwtLogProcessing (com.xenoage.utils.gwt.log.GwtLogProcessing)1 IOException (java.io.IOException)1