- Sort Score
- Result 10 results
- Languages All
Results 251 - 260 of 2,327 for Exceptions (0.04 sec)
-
src/test/java/jcifs/util/SmbCircuitBreakerTest.java
// Try to execute - should be blocked with CIFSException CIFSException exception = assertThrows(CIFSException.class, () -> { circuitBreaker.executeWithCircuitBreaker(() -> "should not execute"); }, "Circuit breaker should throw CIFSException when open"); assertTrue(exception.getMessage().contains("Circuit breaker 'test' is open"), "Exception message should indicate circuit is open"); } @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 23.2K bytes - Viewed (0) -
docs/ja/docs/tutorial/handling-errors.md
おそらくコードの中で直接使用する必要はないでしょう。 しかし、高度なシナリオのために必要な場合には、カスタムヘッダーを追加することができます: {* ../../docs_src/handling_errors/tutorial002.py hl[14] *} ## カスタム例外ハンドラのインストール カスタム例外ハンドラは<a href="https://www.starlette.dev/exceptions/" class="external-link" target="_blank">Starletteと同じ例外ユーティリティ</a>を使用して追加することができます。 あなた(または使用しているライブラリ)が`raise`するかもしれないカスタム例外`UnicornException`があるとしましょう。 そして、この例外をFastAPIでグローバルに処理したいと思います。Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Oct 11 17:48:49 UTC 2025 - 11.6K bytes - Viewed (0) -
fastapi/security/http.py
import binascii from base64 import b64decode from typing import Annotated, Optional from annotated_doc import Doc from fastapi.exceptions import HTTPException from fastapi.openapi.models import HTTPBase as HTTPBaseModel from fastapi.openapi.models import HTTPBearer as HTTPBearerModel from fastapi.security.base import SecurityBase from fastapi.security.utils import get_authorization_scheme_param from pydantic import BaseModel
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 21:25:59 UTC 2025 - 13.2K bytes - Viewed (0) -
cmd/postpolicyform.go
var keyInPolicyExceptions = map[string]bool{ xhttp.AmzSignature: true, "File": true, "Policy": true, // MinIO specific exceptions to the general S3 rule above. encrypt.SseKmsKeyID: true, encrypt.SseEncryptionContext: true, encrypt.SseCustomerAlgorithm: true, encrypt.SseCustomerKey: true, encrypt.SseCustomerKeyMD5: true,
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Thu Oct 23 15:10:12 UTC 2025 - 12.1K bytes - Viewed (0) -
src/main/java/org/codelibs/core/misc/DynamicProperties.java
import java.util.Enumeration; import java.util.InvalidPropertiesFormatException; import java.util.Map; import java.util.Properties; import java.util.Set; import org.codelibs.core.exception.FileAccessException; import org.codelibs.core.exception.IORuntimeException; /** * The {@code DynamicProperties} class extends {@link Properties} to provide dynamic * loading and storing of properties from a file. It monitors the file for changesRegistered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat Jul 05 00:11:05 UTC 2025 - 13.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransWaitNamedPipeResponseTest.java
@DisplayName("Methods should handle empty buffer") void testMethodsWithEmptyBuffer() { // Arrange byte[] emptyBuffer = new byte[0]; // Act & Assert - These should not throw exceptions assertEquals(0, response.writeSetupWireFormat(emptyBuffer, 0)); assertEquals(0, response.writeParametersWireFormat(emptyBuffer, 0)); assertEquals(0, response.writeDataWireFormat(emptyBuffer, 0));Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.1K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/impl/LogHelperImpl.java
logger.debug("Crawling access exception at url: {}", urlQueue.getUrl(), e); } else if (e.isInfoEnabled()) { logger.info(e.getMessage()); } else if (e.isWarnEnabled()) { logger.warn("Crawling access exception at url: {}", urlQueue.getUrl(), e); } else if (e.isErrorEnabled()) { logger.error("Crawling access exception at url: {}", urlQueue.getUrl(), e); }
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Sun Nov 23 02:01:26 UTC 2025 - 14K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransPeekNamedPipeResponseTest.java
assertEquals(0, response.readDataWireFormat(emptyBuffer, 0, 0)); // readParametersWireFormat would throw exception due to buffer underflow assertThrows(Exception.class, () -> { response.readParametersWireFormat(emptyBuffer, 0, 0); }); } @Test @DisplayName("Test inherited behavior from parent class")
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/CreateContextRequestTest.java
} @Test @DisplayName("Should throw exception on null buffer") void testEncodeWithNullBuffer() { assertThrows(IllegalArgumentException.class, () -> testRequest.encode(null, 0), "Should throw exception for null buffer"); } @Test @DisplayName("Should throw exception on negative index") void testEncodeWithNegativeIndex() {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java
/** Calls threadFail with message "should throw exception". */ public void threadShouldThrow() { threadFail("should throw exception"); } /** Calls threadFail with message "should throw" + exceptionName. */ public void threadShouldThrow(String exceptionName) { threadFail("should throw " + exceptionName); } /**
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 20:07:52 UTC 2025 - 37.8K bytes - Viewed (0)