Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 385 for failure (0.19 sec)

  1. okhttp/src/test/java/okhttp3/internal/ws/WebSocketRecorder.kt

        }
      }
    
      override fun onFailure(
        webSocket: WebSocket,
        t: Throwable,
        response: Response?,
      ) {
        Platform.get().log("[WS $name] onFailure", Platform.INFO, t)
        val delegate = delegate
        if (delegate != null) {
          this.delegate = null
          delegate.onFailure(webSocket, t, response)
        } else {
          events.add(Failure(t, response))
        }
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/WebPlatformToAsciiTest.kt

          }
        }
    
        if (failures.isNotEmpty()) {
          for (failure in failures) {
            println(failure)
          }
          throw failures.first()
        }
      }
    
      private fun testToAscii(
        input: String,
        output: String?,
        comment: String?,
      ) {
        val url = "https://$input/".toHttpUrlOrNull()
        assertThat(url?.host, name = comment ?: input).isEqualTo(output)
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/base/PreconditionsTest.java

         *
         * - _shouldn't_ be null, so we don't annotate it with @Nullable
         *
         * - _can_ be null without causing a runtime failure (because we don't want the interesting
         *   details of precondition failure to be hidden by an exception we throw about an unexpectedly
         *   null _failure message_)
         *
         * That combination upsets NullPointerTester, which wants any call that passes null for a
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 19.8K bytes
    - Viewed (0)
  4. okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsOverHttps.kt

        } catch (e: Exception) {
          synchronized(failures) {
            failures.add(e)
          }
        }
      }
    
      @Throws(UnknownHostException::class)
      private fun throwBestFailure(
        hostname: String,
        failures: List<Exception>,
      ): List<InetAddress> {
        if (failures.isEmpty()) {
          throw UnknownHostException(hostname)
        }
    
        val failure = failures[0]
    
        if (failure is UnknownHostException) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Mar 22 07:09:21 GMT 2024
    - 9.8K bytes
    - Viewed (0)
  5. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/RecordedRequest.kt

        body: Buffer,
        sequenceNumber: Int,
        failure: IOException?,
        method: String?,
        path: String?,
        handshake: Handshake?,
        requestUrl: HttpUrl?,
      ) {
        this.requestLine = requestLine
        this.headers = headers
        this.chunkSizes = chunkSizes
        this.bodySize = bodySize
        this.body = body
        this.sequenceNumber = sequenceNumber
        this.failure = failure
        this.method = method
        this.path = path
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.1K bytes
    - Viewed (2)
  6. okhttp/src/test/java/okhttp3/RecordedResponse.kt

            if (expectedClass.isInstance(failure)) {
              found = true
              break
            }
          }
          assertThat(
            found,
            "Expected exception type among ${allowedExceptionTypes.contentToString()}, got $failure",
          ).isTrue()
        }
    
      fun assertFailure(vararg messages: String) =
        apply {
          assertThat(failure, "No failure found").isNotNull()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  7. okhttp-sse/src/test/java/okhttp3/sse/internal/EventSourceRecorder.kt

        get().log("[ES] onClosed", Platform.INFO, null)
        events.add(Closed)
        drainCancelQueue(eventSource)
      }
    
      override fun onFailure(
        eventSource: EventSource,
        t: Throwable?,
        response: Response?,
      ) {
        get().log("[ES] onFailure", Platform.INFO, t)
        events.add(Failure(t, response))
        drainCancelQueue(eventSource)
      }
    
      private fun drainCancelQueue(eventSource: EventSource) {
        if (cancel) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/base/PreconditionsTest.java

         *
         * - _shouldn't_ be null, so we don't annotate it with @Nullable
         *
         * - _can_ be null without causing a runtime failure (because we don't want the interesting
         *   details of precondition failure to be hidden by an exception we throw about an unexpectedly
         *   null _failure message_)
         *
         * That combination upsets NullPointerTester, which wants any call that passes null for a
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 19.8K bytes
    - Viewed (0)
  9. Jenkinsfile

            currentBuild.result = "ABORTED"
        } else {
            currentBuild.result = "FAILURE"
        }
        throw e
    } catch (InterruptedException e) {
        echo "[FAILURE-004] ${e}"
        currentBuild.result = "ABORTED"
        throw e
    } catch (Throwable e) {
        echo "[FAILURE-001] ${e}"
        currentBuild.result = "FAILURE"
        throw e
    } finally {
        // notify completion
        stage("Notifications") {
    Plain Text
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Sun Mar 03 21:28:30 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  10. Jenkinsfile.s390x

            currentBuild.result = "ABORTED"
        } else {
            currentBuild.result = "FAILURE"
        }
        throw e
    } catch (InterruptedException e) {
        echo "[FAILURE-004] ${e}"
        currentBuild.result = "ABORTED"
        throw e
    } catch (Throwable e) {
        echo "[FAILURE-001] ${e}"
        currentBuild.result = "FAILURE"
        throw e
    }
    
    def archiveDirs(stageId, archives) {
    Plain Text
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Sun Mar 03 21:28:30 GMT 2024
    - 7.7K bytes
    - Viewed (0)
Back to top