Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 367 for onerror (0.06 sec)

  1. guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java

        CyclicBarrier barrier = new CyclicBarrier(2);
        // we need to make sure the error gets thrown on a different thread.
        ExecutorService service = newSingleThreadExecutor();
        try {
          SequentialExecutor executor = new SequentialExecutor(service);
          Runnable errorTask =
              new Runnable() {
                @Override
                public void run() {
                  throw new MyError();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/ErrorCode.kt

     */
    package okhttp3.internal.http2
    
    /** http://tools.ietf.org/html/draft-ietf-httpbis-http2-17#section-7 */
    enum class ErrorCode constructor(
      val httpCode: Int,
    ) {
      /** Not an error!  */
      NO_ERROR(0),
    
      PROTOCOL_ERROR(1),
    
      INTERNAL_ERROR(2),
    
      FLOW_CONTROL_ERROR(3),
    
      SETTINGS_TIMEOUT(4),
    
      STREAM_CLOSED(5),
    
      FRAME_SIZE_ERROR(6),
    
      REFUSED_STREAM(7),
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 1.2K bytes
    - Viewed (0)
  3. mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt

            val reason =
              when (value) {
                in 100..199 -> "Informational"
                in 200..299 -> "OK"
                in 300..399 -> "Redirection"
                in 400..499 -> "Client Error"
                in 500..599 -> "Server Error"
                else -> "Mock Response"
              }
            status = "HTTP/1.1 $value $reason"
          }
    
        private var headers_: Headers.Builder
        public val headers: Headers
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  4. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

            } else {
              socket.close()
            }
          }
    
          ShutdownConnection -> {
            if (stream != null) {
              stream.connection.shutdown(ErrorCode.NO_ERROR)
            } else {
              socket.close()
            }
          }
    
          is CloseSocket -> {
            if (effect.shutdownInput) socket.shutdownInput()
            if (effect.shutdownOutput) socket.shutdownOutput()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 02 20:36:00 UTC 2025
    - 40.3K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/util/ErrorToWarnRewritePolicyTest.java

                    .setLevel(Level.ERROR)
                    .setMessage(new SimpleMessage("test error message"))
                    .build();
    
            LogEvent result = policy.rewrite(event);
    
            assertNotSame(event, result);
            assertEquals(Level.WARN, result.getLevel());
            assertEquals("test.logger.sublogger", result.getLoggerName());
            assertEquals("test error message", result.getMessage().getFormattedMessage());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/exception/DataStoreExceptionTest.java

            DataStoreException withIOException = new DataStoreException("IO Error", new java.io.IOException("File not found"));
            DataStoreException withNPE = new DataStoreException("NPE Error", new NullPointerException("Null value"));
            DataStoreException withCustom = new DataStoreException("Custom Error", new FessSystemException("System error"));
    
            assertTrue(withIOException.getCause() instanceof java.io.IOException);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/exception/GsaConfigExceptionTest.java

            Throwable ioCause = new java.io.IOException("IO error");
            GsaConfigException ioException = new GsaConfigException("GSA IO error", ioCause);
            assertNotNull(ioException);
            assertTrue(ioException.getCause() instanceof java.io.IOException);
    
            // Test with custom exception
            Throwable customCause = new FessSystemException("Custom Fess error");
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/web/error/ErrorBadrequrestAction.java

        //                                                                      ==============
        /**
         * Displays the bad request error page.
         *
         * @param form the error form containing error information
         * @return HTML response for the bad request error page
         */
        @Execute
        public HtmlResponse index(final ErrorForm form) {
            return asHtml(virtualHost(path_Error_BadRequestJsp));
        }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/exception/DataStoreCrawlingExceptionTest.java

            // Test with URL, message, exception, and abort set to true
            String url = "http://example.com/test2";
            String message = "Critical error message";
            Exception cause = new IllegalStateException("Critical error");
            boolean abort = true;
    
            DataStoreCrawlingException exception = new DataStoreCrawlingException(url, message, cause, abort);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/exception/WebApiExceptionTest.java

            Exception middleCause = new RuntimeException("Runtime error", innerCause);
            WebApiException exception = new WebApiException(400, middleCause);
    
            assertEquals(400, exception.getStatusCode());
            assertEquals("Runtime error", exception.getMessage());
            assertEquals(middleCause, exception.getCause());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.3K bytes
    - Viewed (0)
Back to top