- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 11 for printStackTrace (0.08 seconds)
-
src/test/java/org/codelibs/fess/dict/DictionaryExpiredExceptionTest.java
java.io.PrintStream ps = new java.io.PrintStream(baos); exception.printStackTrace(ps); String output = baos.toString(); assertNotNull(output); assertTrue(output.contains("DictionaryExpiredException")); } catch (Exception e) { fail("printStackTrace should not throw exception"); } }
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 7.5K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/timer/MonitorTargetTest.java
StringBuilder buf = new StringBuilder(); // Create an exception that might cause issues during processing Exception exception = new Exception() { @Override public void printStackTrace(java.io.PrintWriter writer) { // Simulate a normal stack trace output writer.println("Special test exception"); writer.flush(); } };
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 11.3K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/util/LogNotificationAppender.java
} String throwableStr = null; final Throwable thrown = event.getThrown(); if (thrown != null) { final StringWriter sw = new StringWriter(); thrown.printStackTrace(new PrintWriter(sw)); throwableStr = sw.toString(); if (throwableStr.length() > MAX_THROWABLE_LENGTH) { throwableStr = throwableStr.substring(0, MAX_THROWABLE_LENGTH); }Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 26 14:36:23 GMT 2026 - 6K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/utils/CLIReportingUtils.java
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Mar 10 15:37:54 GMT 2026 - 6.9K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java
* wrapping it in an AssertionFailedError if necessary. */ final void threadUnexpectedException(Throwable t) { threadRecordFailure(t); t.printStackTrace(); if (t instanceof RuntimeException) { throw (RuntimeException) t; } else if (t instanceof Error) { throw (Error) t; } else {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Mar 07 02:20:33 GMT 2026 - 8.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java
* wrapping it in an AssertionFailedError if necessary. */ final void threadUnexpectedException(Throwable t) { threadRecordFailure(t); t.printStackTrace(); if (t instanceof RuntimeException) { throw (RuntimeException) t; } else if (t instanceof Error) { throw (Error) t; } else {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Mar 07 02:20:33 GMT 2026 - 8.8K bytes - Click Count (0) -
android/guava/src/com/google/common/io/FileBackedOutputStream.java
} @Override public void finalizeReferent() { references.remove(this); try { state.reset(); } catch (Throwable t) { t.printStackTrace(System.err); } } } private static final class FbosByteSource extends ByteSource { final State state; FbosByteSource(State state) { this.state = state; }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Mar 07 17:30:49 GMT 2026 - 12.4K bytes - Click Count (0) -
docs/recipes.md
.url("http://publicobject.com/helloworld.txt") .build() client.newCall(request).enqueue(object : Callback { override fun onFailure(call: Call, e: IOException) { e.printStackTrace() } override fun onResponse(call: Call, response: Response) { response.use { if (!response.isSuccessful) throw IOException("Unexpected code $response")
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Mar 15 09:01:42 GMT 2026 - 47.8K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/api/json/SearchApiManager.java
} else { buf.append(t.getMessage()); } try (final StringWriter sw = new StringWriter(); final PrintWriter pw = new PrintWriter(sw)) { t.printStackTrace(pw); pw.flush(); buf.append(" [ ").append(sw.toString()).append(" ]"); } catch (final IOException e) {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 27 13:56:32 GMT 2026 - 55.4K bytes - Click Count (1) -
guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java
PrintWriter writer = new PrintWriter(message); writer.println("Expected no failures, but found:"); for (AssertionError failure : failures) { failure.printStackTrace(writer); } failures.clear(); assertWithMessage(message.toString()).fail(); } } static final class TestCloseable implements Closeable {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 63K bytes - Click Count (0)