- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 1,783 for exception (0.05 seconds)
-
android/guava-tests/test/com/google/common/io/CloserTest.java
new Suppression(c1, c3Exception, c1Exception)); } public static void testSuppressingSuppressor() throws IOException { Closer closer = Closer.create(); IOException thrownException = new IOException(); IOException c1Exception = new IOException(); RuntimeException c2Exception = new RuntimeException();
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 11.8K bytes - Click Count (0) -
docs/en/docs/reference/exceptions.md
# Exceptions - `HTTPException` and `WebSocketException` These are the exceptions that you can raise to show errors to the client. When you raise an exception, as would happen with normal Python, the rest of the execution is aborted. This way you can raise these exceptions from anywhere in the code to abort a request and show the error to the client. You can use: * `HTTPException` * `WebSocketException`
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 597 bytes - Click Count (0) -
fastapi/exceptions.py
from pydantic import BaseModel, create_model from starlette.exceptions import HTTPException as StarletteHTTPException from starlette.exceptions import WebSocketException as StarletteWebSocketException class EndpointContext(TypedDict, total=False): function: str path: str file: str line: int class HTTPException(StarletteHTTPException): """ An HTTP exception you can raise in your own code to show errors to the client.
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 12:54:56 GMT 2025 - 6.8K bytes - Click Count (0) -
compat/maven-compat/src/test/java/org/apache/maven/artifact/AbstractArtifactComponentTestCase.java
protected void createLocalArtifact(Artifact artifact) throws Exception { createArtifact(artifact, localRepository()); } protected void createRemoteArtifact(Artifact artifact) throws Exception { createArtifact(artifact, remoteRepository()); } protected void createArtifact(Artifact artifact, ArtifactRepository repository) throws Exception { String path = repository.pathOf(artifact);Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Oct 10 09:40:15 GMT 2025 - 13.8K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/project/DependencyResolutionException.java
List<Exception> exceptions = result.getResolutionErrors(dependency); for (Exception e : exceptions) { msg.append("\t").append(e.getMessage()).append(System.lineSeparator()); } } for (Exception exception : result.getCollectionErrors()) { msg.append(exception.getMessage()).append(System.lineSeparator());
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Jul 23 10:13:56 GMT 2025 - 2.6K bytes - Click Count (0) -
api/maven-api-cli/src/main/java/org/apache/maven/api/cli/Logger.java
* * @param level the severity level of the message * @param message the message to be logged * @param error the associated exception, or null if not applicable */ void log(@Nonnull Level level, @Nonnull String message, @Nullable Throwable error); /** * Logs a debug message without an associated exception. *Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Thu Oct 16 06:12:36 GMT 2025 - 5K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/project/DefaultDependencyResolutionResult.java
return unresolvedDependencies; } @Override public List<Exception> getCollectionErrors() { return collectionErrors; } public void setCollectionErrors(List<Exception> exceptions) { if (exceptions != null) { this.collectionErrors = exceptions; } else { this.collectionErrors = new ArrayList<>(); } }Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Jul 23 10:13:56 GMT 2025 - 3.1K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-UtilCommon.kt
} } if (exception != null) { throw exception } } internal fun <E> MutableList<E>.addIfAbsent(element: E) { if (!contains(element)) add(element) } internal fun Exception.withSuppressed(suppressed: List<Exception>): Throwable = apply { for (e in suppressed) addSuppressed(e) } internal inline fun <T> Iterable<T>.filterList(predicate: T.() -> Boolean): List<T> {
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Mon May 05 16:01:00 GMT 2025 - 10.1K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/MavenBuilderException.java
/** * Base class for all maven exceptions carrying {@link BuilderProblem}s. * * @since 4.0.0 */ @Experimental public abstract class MavenBuilderException extends MavenException { /** * The collection of problems associated with this exception. */ private final ProblemCollector<BuilderProblem> problems; /** * Constructs a new exception with the specified message and cause.Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Thu Apr 03 13:33:59 GMT 2025 - 3.2K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/connection/RetryConnectionTest.kt
@RegisterExtension val clientTestRule = OkHttpClientTestRule() private var client = clientTestRule.newClient() @AfterEach internal fun tearDown() { factory.close() } @Test fun nonRetryableIOException() { val exception = IOException("Non-handshake exception") assertThat(retryTlsHandshake(exception)).isFalse() }
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 4.3K bytes - Click Count (0)