Search Options

Results per page
Sort
Preferred Languages
Advance

Results 631 - 640 of 2,174 for Exception (0.04 sec)

  1. samples/guide/src/main/java/okhttp3/recipes/CacheResponse.java

      private final OkHttpClient client;
    
      public CacheResponse(File cacheDirectory) throws Exception {
        int cacheSize = 10 * 1024 * 1024; // 10 MiB
        Cache cache = new Cache(cacheDirectory, cacheSize);
    
        client = new OkHttpClient.Builder()
            .cache(cache)
            .build();
      }
    
      public void run() throws Exception {
        Request request = new Request.Builder()
            .url("http://publicobject.com/helloworld.txt")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun May 22 01:29:42 UTC 2016
    - 2.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/smb1/SmbTreeTest.java

            ServerMessageBlock response = new SmbComBlankResponse();
    
            // Should throw exception for invalid operation
            assertThrows(SmbException.class, () -> tree.send(request, response));
        }
    
        @Test
        void testTreeConnectWithWaitInterrupted() throws Exception {
            // Create a tree and simulate concurrent connection attempt
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  3. compat/maven-compat/src/test/java/org/apache/maven/AbstractCoreMavenComponentTestCase.java

        // separate.
        protected MavenSession createMavenSession(File pom) throws Exception {
            return createMavenSession(pom, new Properties());
        }
    
        protected MavenSession createMavenSession(File pom, Properties executionProperties) throws Exception {
            return createMavenSession(pom, executionProperties, false);
        }
    
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jan 24 17:29:44 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/eventbus/SubscriberExceptionContext.java

     * the License.
     */
    
    package com.google.common.eventbus;
    
    import static com.google.common.base.Preconditions.checkNotNull;
    
    import java.lang.reflect.Method;
    
    /**
     * Context for an exception thrown by a subscriber.
     *
     * @since 16.0
     */
    public class SubscriberExceptionContext {
      private final EventBus eventBus;
      private final Object event;
      private final Object subscriber;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Jan 18 02:54:30 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/xml/DocumentBuilderFactoryUtil.java

    import javax.xml.XMLConstants;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.ParserConfigurationException;
    
    import org.codelibs.core.exception.ParserConfigurationRuntimeException;
    import org.codelibs.core.log.Logger;
    
    /**
     * Utility class for {@link DocumentBuilderFactory}.
     *
     * @author higa
     */
    public abstract class DocumentBuilderFactoryUtil {
    
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/hash/HashingTest.java

        tester.testAllPublicStaticMethods(Hashing.class);
      }
    
      public void testSeedlessHashFunctionEquals() throws Exception {
        assertSeedlessHashFunctionEquals(Hashing.class);
      }
    
      public void testSeededHashFunctionEquals() throws Exception {
        assertSeededHashFunctionEquals(Hashing.class);
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 26.4K bytes
    - Viewed (2)
  7. android/guava/src/com/google/common/util/concurrent/AbstractTransformFuture.java

          // mayInterruptIfRunning is irrelevant.
          cancel(false);
          return;
        } catch (ExecutionException e) {
          // Set the cause of the exception as this future's exception.
          setException(e.getCause());
          return;
        } catch (Exception e) { // sneaky checked exception
          // Bug in inputFuture.get(). Propagate to the output Future so that its consumers don't hang.
          setException(e);
          return;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 20 18:03:37 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/info/Smb2SetInfoRequestTest.java

                fileIdField.setAccessible(true);
                byte[] actualFileId = (byte[]) fileIdField.get(request);
                assertArrayEquals(expectedFileId, actualFileId);
            } catch (Exception e) {
                throw new RuntimeException(e);
            }
        }
    
        @Test
        @DisplayName("Test constructor with Configuration and FileId")
        void testConstructorWithConfigAndFileId() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.9K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/exception/ClRuntimeException.java

     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.exception;
    
    import org.codelibs.core.message.MessageFormatter;
    
    /**
     * A base exception class for CoreLib.
     *
     * @author higa
     * @author shinsuke
     */
    public class ClRuntimeException extends RuntimeException {
    
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat Jul 05 00:11:05 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/SmbResourceLocatorTest.java

            public URL getURL() {
                try {
                    // Create URL with custom protocol handler for SMB
                    return new URL(null, urlStr, new jcifs.smb.Handler());
                } catch (Exception e) {
                    // Return null if URL creation fails
                    return null;
                }
            }
    
            @Override
            public Address getAddress() {
                return null;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8K bytes
    - Viewed (0)
Back to top