private static void acquireSemaphore() { try { semaphore.acquire(); } catch (InterruptedException e) { SilenceException.reThrow(e); } }
public T pop() { synchronized (lock) { if (stack.size() == 0) try { T object = objectProvider.provide(); list.add(object); stack.push(object); } catch (Exception e) { SilenceException.reThrow(e); } return stack.pop(); } }
public WavReader(DirectBuffer memory) { try { loadFromStreamImpl(new DirectBufferInputStream(memory)); } catch (IOException e) { SilenceException.reThrow(e); } }
@Override public void savePreferences(String name, JSONObject preferences) { try { FilePath file = FilePath.getExternalFile(System.getProperty("user.home") + "\\" + name); ((LwjglFileWriter) fileWriter).writeSync(JSON.write(preferences), file, false); } catch (IOException e) { SilenceException.reThrow(e); } } }
SilenceException.reThrow(e);
SilenceException.reThrow(e);
SilenceException.reThrow(e);
SilenceException.reThrow(e);