Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 66 for errorCode (0.17 sec)

  1. src/cmd/vendor/golang.org/x/tools/internal/typesinternal/errorcode.go

    // Copyright 2020 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package typesinternal
    
    //go:generate stringer -type=ErrorCode
    
    type ErrorCode int
    
    // This file defines the error codes that can be produced during type-checking.
    // Collectively, these codes provide an identifier that may be used to
    // implement special handling for certain types of errors.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 34K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Stream.kt

        }
        connection.writeSynResetLater(id, errorCode)
      }
    
      /** Returns true if this stream was closed. */
      private fun closeInternal(
        errorCode: ErrorCode,
        errorException: IOException?,
      ): Boolean {
        lock.assertNotHeld()
    
        this.withLock {
          if (this.errorCode != null) {
            return false
          }
          this.errorCode = errorCode
          this.errorException = errorException
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Connection.kt

       * underlying input and output streams and shuts down internal task queues.
       */
      override fun close() {
        close(ErrorCode.NO_ERROR, ErrorCode.CANCEL, null)
      }
    
      internal fun close(
        connectionCode: ErrorCode,
        streamCode: ErrorCode,
        cause: IOException?,
      ) {
        this.assertThreadDoesntHoldLock()
    
        ignoreIoExceptions {
          shutdown(connectionCode)
        }
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 32.6K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Writer.kt

      fun rstStream(
        streamId: Int,
        errorCode: ErrorCode,
      ) {
        this.withLock {
          if (closed) throw IOException("closed")
          require(errorCode.httpCode != -1)
    
          frameHeader(
            streamId = streamId,
            length = 4,
            type = TYPE_RST_STREAM,
            flags = FLAG_NONE,
          )
          sink.writeInt(errorCode.httpCode)
          sink.flush()
        }
      }
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

        connection.newStream(headerEntries("b", "banana"), false)
    
        // Verify the peer received what was expected.
        assertThat(peer.takeFrame().type).isEqualTo(Http2.TYPE_HEADERS)
        assertThat(peer.takeFrame().errorCode).isEqualTo(ErrorCode.PROTOCOL_ERROR)
      }
    
      @Test fun pushPromiseStreamsAutomaticallyCancel() {
        // Write the mocking script.
        peer.sendFrame().settings(Settings())
        peer.acceptFrame() // ACK
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 75.4K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnection.kt

      override fun trackFailure(
        call: RealCall,
        e: IOException?,
      ) {
        var noNewExchangesEvent = false
        lock.withLock {
          if (e is StreamResetException) {
            when {
              e.errorCode == ErrorCode.REFUSED_STREAM -> {
                // Stop using this connection on the 2nd REFUSED_STREAM error.
                refusedStreamCount++
                if (refusedStreamCount > 1) {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/metrics/types_util.cc

            });
      }
    };
    }  // namespace
    
    tflite::metrics::ConverterErrorData NewConverterErrorData(
        const std ::string& pass_name, const std::string& error_message,
        tflite::metrics::ConverterErrorData::ErrorCode error_code,
        const std::string& op_name, const Location& location) {
      using tflite::metrics::ConverterErrorData;
      ConverterErrorData error;
      if (!pass_name.empty()) {
        error.set_subcomponent(pass_name);
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/RouteFailureTest.kt

    import mockwebserver3.MockWebServer
    import mockwebserver3.SocketPolicy.ResetStreamAtStart
    import mockwebserver3.junit5.internal.MockWebServerInstance
    import okhttp3.internal.http.RecordingProxySelector
    import okhttp3.internal.http2.ErrorCode
    import okhttp3.testing.PlatformRule
    import org.junit.jupiter.api.BeforeEach
    import org.junit.jupiter.api.Test
    import org.junit.jupiter.api.extension.RegisterExtension
    import org.junit.jupiter.params.ParameterizedTest
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Tue May 14 17:48:07 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  9. src/html/template/doc.go

    	tmpl, err := template.New("name").Parse(...)
    	// Error checking elided
    	err = tmpl.Execute(out, data)
    
    If successful, tmpl will now be injection-safe. Otherwise, err is an error
    defined in the docs for ErrorCode.
    
    HTML templates treat data values as plain text which should be encoded so they
    can be safely embedded in an HTML document. The escaping is contextual, so
    actions can appear within JavaScript, CSS, and URI contexts.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:04:29 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  10. cmd/object-handlers.go

    				}
    			}
    		}
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(s3Error), r.URL)
    		return
    	}
    
    	// Get request range.
    	rangeHeader := r.Header.Get(xhttp.Range)
    	if rangeHeader != "" {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrUnsupportedRangeHeader), r.URL)
    		return
    	}
    
    	if r.ContentLength <= 0 {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrEmptyRequestBody), r.URL)
    		return
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 14 13:28:35 UTC 2024
    - 124.2K bytes
    - Viewed (0)
Back to top