- Sort Score
- Num 10 results
- Language All
Results 231 - 240 of 1,783 for exception (0.05 seconds)
-
android/guava-tests/test/com/google/common/base/TestExceptions.java
import org.jspecify.annotations.NullUnmarked; /** Exception classes for use in tests. */ @GwtCompatible @NullUnmarked final class TestExceptions { static class SomeError extends Error {} static class SomeCheckedException extends Exception {} static class SomeOtherCheckedException extends Exception {} static class YetAnotherCheckedException extends Exception {}Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 1.3K bytes - Click Count (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/building/TransformerException.java
*/ @Deprecated(since = "4.0.0") public class TransformerException extends Exception { public TransformerException(Exception e) { super(e); } public TransformerException(String message, Throwable exception) { super(message, exception); }Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Feb 25 08:27:34 GMT 2025 - 1.2K bytes - Click Count (0) -
guava-tests/test/com/google/common/hash/HashingInputStreamTest.java
@SuppressWarnings("DoNotMock") @Override protected void setUp() throws Exception { super.setUp(); hasher = mock(Hasher.class); hashFunction = mock(HashFunction.class); buffer = new ByteArrayInputStream(testBytes); when(hashFunction.newHasher()).thenReturn(hasher); } public void testRead_putSingleByte() throws Exception { HashingInputStream in = new HashingInputStream(hashFunction, buffer);Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 5K bytes - Click Count (0) -
compat/maven-compat/src/test/java/org/apache/maven/artifact/resolver/ArtifactResolverTest.java
private Artifact projectArtifact; @BeforeEach @Override public void setUp() throws Exception { super.setUp(); projectArtifact = createLocalArtifact("project", "3.0"); } @Override protected DefaultRepositorySystemSession initRepoSession() throws Exception { DefaultRepositorySystemSession session = super.initRepoSession();Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Mar 26 10:49:22 GMT 2025 - 10.1K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/UncaughtExceptionHandlers.java
try { logger .get() .log( SEVERE, String.format(Locale.ROOT, "Caught an exception in %s. Shutting down.", t), e); } catch (Throwable errorInLogging) { // sneaky checked exception // If logging fails, e.g. due to missing memory, at least try to log the // message and the cause for the failed logging.Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Feb 10 21:03:40 GMT 2025 - 2.8K bytes - Click Count (0) -
src/cmd/api/api_test.go
features: []string{"C", "A"}, required: []string{"A", "B", "C"}, ok: false, out: "-B\n", }, { name: "exception removal", features: []string{"A", "C"}, required: []string{"A", "B", "C"}, exception: []string{"B"}, ok: true, out: "", }, // Test that a feature required on a subset of ports is implicitly satisfiedCreated: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Fri May 02 17:06:27 GMT 2025 - 7.6K bytes - Click Count (0) -
samples/guide/src/main/java/okhttp3/recipes/PrintEvents.java
public void run() throws Exception { Request washingtonPostRequest = new Request.Builder() .url("https://www.washingtonpost.com/") .build(); client.newCall(washingtonPostRequest).enqueue(new Callback() { @Override public void onFailure(Call call, IOException e) { } @Override public void onResponse(Call call, Response response) throws IOException {
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sun Feb 16 23:20:49 GMT 2020 - 6.1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/TestThread.java
assertEquals(null, getResponse(methodName).getResult()); } /** * Asserts that a prior call that had caused this thread to block or wait has since returned the * expected boolean value. */ public void assertPriorCallReturns(boolean expected, @Nullable String methodName) throws Exception {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 11 21:00:51 GMT 2025 - 11.4K bytes - Click Count (0) -
compat/maven-compat/src/test/java/org/apache/maven/repository/LegacyRepositorySystemTest.java
import org.apache.maven.artifact.resolver.ArtifactResolutionResult; import org.apache.maven.artifact.resolver.ResolutionErrorHandler; import org.apache.maven.execution.DefaultMavenExecutionRequest; import org.apache.maven.execution.DefaultMavenExecutionResult; import org.apache.maven.execution.MavenSession; import org.apache.maven.impl.DefaultArtifact; import org.apache.maven.impl.DefaultArtifactCoordinatesFactory;
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Dec 16 13:41:14 GMT 2025 - 11.1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/AbstractIteratorTest.java
* ability to throw the correct exception in the future. */ assertThrows(NoSuchElementException.class, empty::peek); assertThrows(NoSuchElementException.class, empty::peek); } public void testSneakyThrow() throws Exception { Iterator<Integer> iter = new AbstractIterator<Integer>() { boolean haveBeenCalled;Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 7.8K bytes - Click Count (0)