APISonar


com.google.gwt.core.client.GWT.log

> com > google > gwt > core > client > GWT > log
com APIs google APIs gwt APIs core APIs client APIs GWT APIs log APIs

Example 1
public void log(Throwable e) {
        if (e instanceof UmbrellaException) {
            UmbrellaException ue = (UmbrellaException) e;
            for (Throwable t : ue.getCauses()) {
                log(t);
            }
            return;
        }
        log(Util.getSimpleName(e) + ": " + e.getMessage());
        GWT.log(e.getMessage(), e);
    }
Example 2
public static void log(String message)
   {
      GWT.log(message, null) ;
      logToConsole(message) ;
   }
Example 3
private void log(Object arg0, Throwable arg1) {
		System.out.println(arg0 + " : " + arg1.getMessage());
		GWT.log((String) arg0, arg1);
	}
Example 4
public static void displayError(Throwable e) {
        displayError(e.getClass().getName() + ": " + e.getMessage());

        GWT.log(e.getMessage(), e);
    }
Example 5
public void publish(LogRecord record) {
    if (!isSupported() || !isLoggable(record)) {
      return;
    }
    String msg = getFormatter().format(record);
    GWT.log(msg, record.getThrown());
  }
Example 6
public static void method() {
    Integer x = new Integer(42);
    int y = x + 10;
    if (x < y) {
      // This comment will be ignored
      GWT.log("This line should be covered");
    } else {
      GWT.log("This line should not be covered");
    }
  }
Example 7
public static Object convertToInspectableObject(Object jso) {
    try {
      JsoBoxer boxer = (JsoBoxer) jso;
      return boxer.box();
    } catch (Throwable t) {
      GWT.log("GWT could not inspect the JavaScriptObject.", t);
      return "ERROR: Could not inspect the JavaScriptObject, see GWT log for details.";
    }
  }
Example 8
public static void displayError(String msg) {
        VConsole.error(msg);
        GWT.log(msg);
    }
Example 9
protected void fireEvent(ListModelEvent event) {
    for (ListModelListener listener : listeners) {
      try {
        listener.onModelEvent(event);
      }
      catch (Throwable t) {
        GWT.log("Unknown listener error", t);
      }
    }
  }
Example 10
public void processFiles(FileList files) {
		GWT.log("length=" + files.getLength());
		for (File file : files) {
			readQueue.add(file);
		}
		readNext();
	}
Example 11
protected void logAttributes(Record record) {
        for (String attr : record.getAttributes()) {
            GWT.log(attr + ", " + record.getAttribute(attr));
        }
    }
Example 12
private void reportException(String msg, Throwable exception) {
        //if (BLCMain.DEBUG) MessageBox.alert(msg, exception.getMessage(), null);
        GWT.log(msg, exception);
        if (BLCMain.MODAL_PROGRESS.isActive()) {
        	BLCMain.MODAL_PROGRESS.stopProgress();
        }
        if (BLCMain.NON_MODAL_PROGRESS.isActive()) {
        	BLCMain.NON_MODAL_PROGRESS.stopProgress();
        }
    }
Example 13
public void onSuccess(T result) {
        if (BLCMain.DEBUG && result != null) {
            GWT.log("Service call success:\n" + result.toString());
        }
        if (BLCMain.NON_MODAL_PROGRESS.isActive()) {
        	BLCMain.NON_MODAL_PROGRESS.stopProgress();
        }
    }
Example 14
static public JSONObject parseObject(String data) {
        JSONObject jsonObject = null;
        try {
            JSONValue jsonValue = JSONParser.parse(data);
            jsonObject = jsonValue.isObject();
        } catch (JSONException e) {
            GWT.log("Tried to parse bad JSON data", e);
            JSONValue jsonValue = JSONParser.parse(
                "{\"error-message\": \"Received bad JSON data.\"}");
            jsonObject = jsonValue.isObject();
        }
        return jsonObject;
    }