Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,967 for throws (0.55 sec)

  1. guava/src/com/google/common/io/Closer.java

       *
       * <p>This method always throws, and as such should be called as {@code throw closer.rethrow(e);}
       * to ensure the compiler knows that it will throw.
       *
       * @return this method does not return; it always throws
       * @throws IOException when the given throwable is an IOException
       */
      public RuntimeException rethrow(Throwable e) throws IOException {
        checkNotNull(e);
        thrown = e;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/CloserTest.java

          this.closeable = closeable;
          this.thrown = thrown;
          this.suppressed = suppressed;
        }
    
        @Override
        public boolean equals(@Nullable Object obj) {
          if (obj instanceof Suppression) {
            Suppression other = (Suppression) obj;
            return closeable.equals(other.closeable)
                && thrown.equals(other.thrown)
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/io/Closer.java

       *
       * <p>This method always throws, and as such should be called as {@code throw closer.rethrow(e);}
       * to ensure the compiler knows that it will throw.
       *
       * @return this method does not return; it always throws
       * @throws IOException when the given throwable is an IOException
       */
      public RuntimeException rethrow(Throwable e) throws IOException {
        checkNotNull(e);
        thrown = e;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  4. guava/src/com/google/common/util/concurrent/TimeLimiter.java

       * @return the result returned by the Callable
       * @throws TimeoutException if the time limit is reached
       * @throws ExecutionException if {@code callable} throws a checked exception
       * @throws UncheckedExecutionException if {@code callable} throws a {@code RuntimeException}
       * @throws ExecutionError if {@code callable} throws an {@code Error}
       * @since 22.0
       */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 12 18:32:03 UTC 2023
    - 15.3K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java

            if((read( tmp, 0, 4 )) < 0 ) {
                throw new SmbException( "EOF" );
            }
            return Encdec.dec_uint32be( tmp, 0 );
        }
        public final long readLong() throws SmbException {
            if((read( tmp, 0, 8 )) < 0 ) {
                throw new SmbException( "EOF" );
            }
            return Encdec.dec_uint64be( tmp, 0 );
        }
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 10.9K bytes
    - Viewed (0)
  6. guava-testlib/test/com/google/common/testing/ClassSanityTesterTest.java

        assertNull(tester.instantiate(Runnable.class));
      }
    
      public void testInstantiate_abstractClass() throws Exception {
        assertNull(tester.instantiate(AbstractList.class));
      }
    
      public void testInstantiate_annotation() throws Exception {
        assertNull(tester.instantiate(MyAnnotation.class));
      }
    
      public void testInstantiate_setDefault() throws Exception {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 36.2K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

        final int throwAfterCount;
        final RuntimeException thrown;
        int count;
    
        ThrowingRunnable(int throwAfterCount, RuntimeException thrown) {
          this.throwAfterCount = throwAfterCount;
          this.thrown = thrown;
        }
    
        @Override
        public void run() {
          if (++count >= throwAfterCount) {
            throw thrown;
          }
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 28.2K bytes
    - Viewed (0)
  8. subprojects/core/src/main/java/org/gradle/internal/xml/SimpleMarkupWriter.java

        protected SimpleMarkupWriter(Writer writer, String indent) throws IOException {
            this.indent = indent;
            this.output = writer;
        }
    
        @Override
        public void write(char[] chars, int offset, int length) throws IOException {
            characters(chars, offset, length);
        }
    
        @Override
        public void flush() throws IOException {
            output.flush();
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Nov 02 12:15:58 UTC 2021
    - 12K bytes
    - Viewed (0)
  9. maven-core/src/test/java/org/apache/maven/project/DefaultMavenProjectBuilderTest.java

        // only use by reread()
        @TempDir
        Path projectRoot;
    
        @Override
        @BeforeEach
        public void setUp() throws Exception {
            projectBuilder = getContainer().lookup(ProjectBuilder.class);
        }
    
        protected MavenProject getProject(Artifact pom, boolean allowStub) throws Exception {
            ProjectBuildingRequest configuration = new DefaultProjectBuildingRequest();
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Jun 19 15:04:04 UTC 2023
    - 16.5K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbRandomAccessFile.java

        public final byte readByte () throws SmbException {
            if ( ( read(this.tmp, 0, 1) ) < 0 ) {
                throw new SmbEndOfFileException();
            }
            return this.tmp[ 0 ];
        }
    
    
        @Override
        public final int readUnsignedByte () throws SmbException {
            if ( ( read(this.tmp, 0, 1) ) < 0 ) {
                throw new SmbEndOfFileException();
            }
            return this.tmp[ 0 ] & 0xFF;
        }
    
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Wed Jan 08 12:01:33 UTC 2020
    - 18.5K bytes
    - Viewed (1)
Back to top