static volatile int silentException_count; static volatile Throwable silentException_lastException; static Throwable silentException(Throwable e) { ++silentException_count; // yeah it's not atomic :) lastException(e); ret silentException_lastException = e; } static Throwable lastSilentException() { ret silentException_lastException; }