@Override public boolean select(Object ... context) { return X_Runtime.isDebug(); } }
public static Throwable unwrap(Throwable e) { if (X_Runtime.isDebug()) { e.printStackTrace();// Avoid losing information in debug mode. } //don't use instanceof because we don't want to treat subclasses of RuntimeException as wrappers... while (e.getClass().equals(RuntimeException.class) || e.getClass().equals(ExecutionException.class)) { if (e.getCause() == null) { return e; } e = e.getCause(); } return e; }
@Override protected ClassLoader initialValue() { if (X_Runtime.isDebug()) { X_Log.info("Maven compile scope: "+X_String.joinObjects(urls)); } return new URLClassLoader(urls, X_Maven.class.getClassLoader()); }; };
} catch (final Throwable e) { callback.onError(e); if (X_Runtime.isDebug()) { X_Log.warn("IO Error", e);
} catch (final Throwable e) { callback.onError(e); if (X_Runtime.isDebug()) { X_Log.warn("IO Error", e);
} catch (final Throwable e) { callback.onError(e); if (X_Runtime.isDebug()) { X_Log.error(getClass(), "Error sending request",url,e);
if (X_Runtime.isDebug()) { X_Log.info("Multithreaded? ", X_Runtime.isMultithreaded()); X_Log.info("Prepped: ", X_Time.difference(start, prepped));
@Override public IORequest<String> get(final String uri, final StringDictionary<String> headers, final IOCallback<IOMessage<String>> callback) { final String url = normalize(uri); if (callback.isCancelled()) { return cancelled; } try { final RequestBuilder request = newRequest(RequestBuilder.GET, url); normalizeHeaders(headers).forKeys(new ReceivesValue<String>() { @Override public void set(final String key) { final String value = headers.getValue(key); request.setHeader(key, value); } }); applySettings(request, IOConstants.METHOD_GET); final IORequestGwt req = createRequest(); sendRequest(request, req, callback, url, headers, IOConstants.METHOD_GET, null); return req; } catch (final Throwable e) { callback.onError(e); if (X_Runtime.isDebug()) { X_Log.warn("IO Error", e); } return cancelled; } }
} catch (final Throwable e) { callback.onError(e); if (X_Runtime.isDebug()) { X_Log.warn("IO Error", e);
if (X_Runtime.isDebug()) { logger.log(Type.INFO, "Dumping javascript injector (trace level logging)"); if (logger.isLoggable(Type.TRACE))
@Override public void onSuccess(final IOMessage<String> t) { if (cancel) { if (X_Runtime.isDebug()) { X_Log.trace("Ignoring cancelled message", t.url(), t.body()); } return; } request.pending = false; request.statusCode = t.statusCode(); request.statusText = t.statusMessage(); if (deserializer == null) { assert X_String.isEmpty(t.body()) : "Non-null response without a " + "deserializer instance for "+url+"\n Response: "+t.body(); } else { result.set(deserializer.convert(t.body())); } if (handler != null) { handler.onSuccess(result.get()); } }
"No array reflection support for \"+ c.getName() + \"; " + "ensure this class is annotated with @KeepArrays."+ (X_Runtime.isDebug()?" This annotation allows you to add support for " + "any class with the alsoKeep() method, that allows you to keep " + "array support for types without directly annotating them (like java.lang classes).":"")+ if (X_Runtime.isDebug()) { logger.log(Type.INFO, "Generated reflection support for "+needMagicClass.size()+" classes."); logger.log(Type.WARN, sw.toString());