Tabnine Logo
Platform.reportError
Code IndexAdd Tabnine to your IDE (free)

How to use
reportError
method
in
playn.core.Platform

Best Java code snippets using playn.core.Platform.reportError (Showing top 7 results out of 315)

origin: threerings/playn

/**
 * Called when a backend (or other framework code) encounters an exception that it can recover
 * from, but which it would like to report in some orderly fashion. <em>NOTE:</em> this method
 * may be called from threads other than the main PlayN thread.
 */
public static void reportError(String message, Throwable err) {
 platform.reportError(message, err);
}
origin: playn/playn

 protected void emitFrame () {
  try { frame.emit(this); }
  catch (Throwable e) { reportError("Frame tick exception", e); }
 }
}
origin: playn/playn

 private void dispatch () {
  synchronized (this) {
   running.addAll(pending);
   pending.clear();
  }
  for (int ii = 0, ll = running.size(); ii < ll; ii++) {
   Runnable action = running.get(ii);
   try {
    action.run();
   } catch (Throwable e) {
    plat.reportError("invokeLater Runnable failed: " + action, e);
   }
  }
  running.clear();
 }
}
origin: io.playn/playn-core

/**
 * Dispatches {@code event} on {@code signal} and catches any error that propagates out of the
 * event dispatch, reporting it via {@link #reportError}.
 */
public <E> void dispatchEvent (Signal<E> signal, E event) {
 try {
  signal.emit(event);
 } catch (Throwable cause) {
  reportError("Event dispatch failure", cause);
 }
}
origin: io.playn/playn-core

 protected void emitFrame () {
  try { frame.emit(this); }
  catch (Throwable e) { reportError("Frame tick exception", e); }
 }
}
origin: playn/playn

/**
 * Dispatches {@code event} on {@code signal} and catches any error that propagates out of the
 * event dispatch, reporting it via {@link #reportError}.
 */
public <E> void dispatchEvent (Signal<E> signal, E event) {
 try {
  signal.emit(event);
 } catch (Throwable cause) {
  reportError("Event dispatch failure", cause);
 }
}
origin: io.playn/playn-core

 private void dispatch () {
  synchronized (this) {
   running.addAll(pending);
   pending.clear();
  }
  for (int ii = 0, ll = running.size(); ii < ll; ii++) {
   Runnable action = running.get(ii);
   try {
    action.run();
   } catch (Throwable e) {
    plat.reportError("invokeLater Runnable failed: " + action, e);
   }
  }
  running.clear();
 }
}
playn.corePlatformreportError

Javadoc

Called when a backend (or other framework code) encounters an exception that it can recover from, but which it would like to report in some orderly fashion. NOTE: this method may be called from threads other than the main PlayN thread.

Popular methods of Platform

  • log
    Returns the Log service.
  • graphics
    Returns the Graphics service.
  • assets
    Returns the Assets service.
  • input
    Returns the Input service.
  • invokeLater
  • exec
    Returns the Exec service.
  • json
    Returns the Json service.
  • storage
    Returns the Storage storage service.
  • time
    Returns the current time, as a double value in millis since January 1, 1970, 00:00:00 GMT. This is e
  • type
    Returns the platform Platform.Type.
  • net
    Returns the Net service.
  • setPropagateEvents
  • net,
  • setPropagateEvents,
  • tick,
  • audio,
  • dispatchEvent,
  • keyboard,
  • mouse,
  • openURL,
  • pointer

Popular in Java

  • Running tasks concurrently on multiple threads
  • onRequestPermissionsResult (Fragment)
  • requestLocationUpdates (LocationManager)
  • getSharedPreferences (Context)
  • Permission (java.security)
    Legacy security code; do not use.
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • JOptionPane (javax.swing)
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now