Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 1,354 for rethrow (0.18 sec)

  1. guava-testlib/test/com/google/common/collect/testing/IteratorTesterTest.java

        public T next() {
          try {
            return iterator.next();
          } catch (NoSuchElementException e) {
            nextThrewException = true;
            throw e;
          }
        }
    
        @Override
        public void remove() {
          if (nextThrewException) {
            throw new IllegalStateException();
          }
          iterator.remove();
        }
      }
    
      public void testCanCatchSunJavaBug6529795InTargetIterator() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 12:41:04 GMT 2023
    - 10.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/ForwardingMultisetTest.java

                            throw new UnsupportedOperationException();
                          }
    
                          @Override
                          public Iterator<String> iterator() {
                            throw new UnsupportedOperationException();
                          }
    
                          @Override
                          public boolean removeAll(Collection<?> collection) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 17 15:49:06 GMT 2023
    - 11.8K bytes
    - Viewed (0)
  3. maven-api-impl/src/main/java/org/apache/maven/internal/impl/Utils.java

    import java.util.stream.Collectors;
    
    class Utils {
        static <T> T nonNull(T t) {
            if (t == null) {
                throw new IllegalArgumentException();
            }
            return t;
        }
    
        static <T> T nonNull(T t, String name) {
            if (t == null) {
                throw new IllegalArgumentException(name + " cannot be null");
            }
            return t;
        }
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  4. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultSettingsXmlFactory.java

                throw new IllegalArgumentException("writer or outputStream must be non null");
            }
            try {
                if (writer != null) {
                    new SettingsStaxWriter().write(writer, content);
                } else {
                    new SettingsStaxWriter().write(outputStream, content);
                }
            } catch (Exception e) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbTreeImpl.java

                    case SmbComTransaction.TRANS2_GET_DFS_REFERRAL:
                        break;
                    default:
                        throw new SmbException("Invalid operation for " + svc + " service: " + request);
                    }
                    break;
                default:
                    throw new SmbException("Invalid operation for " + svc + " service" + request);
                }
            }
        }
    
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:06:39 GMT 2023
    - 29.6K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/base/AbstractIteratorTest.java

              @Override
              public Integer computeNext() {
                if (haveBeenCalled) {
                  throw new AssertionError("Should not have been called again");
                } else {
                  haveBeenCalled = true;
                  sneakyThrow(new SomeCheckedException());
                  throw new AssertionError(); // unreachable
                }
              }
            };
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu May 04 09:41:29 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/base/AbstractIteratorTest.java

              @Override
              public Integer computeNext() {
                if (haveBeenCalled) {
                  throw new AssertionError("Should not have been called again");
                } else {
                  haveBeenCalled = true;
                  sneakyThrow(new SomeCheckedException());
                  throw new AssertionError(); // unreachable
                }
              }
            };
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu May 04 09:41:29 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  8. maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultResolutionErrorHandler.java

                throw result.getVersionRangeViolation(0);
            }
    
            // Transfer Error
    
            if (result.hasErrorArtifactExceptions()) {
                throw result.getErrorArtifactExceptions().get(0);
            }
    
            if (result.hasMissingArtifacts()) {
                throw new MultipleArtifactsNotFoundException(
                        request.getArtifact(),
                        toList(result.getArtifacts()),
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Sep 06 11:28:54 GMT 2023
    - 2.7K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/dict/protwords/ProtwordsFile.java

                    throw new DictionaryException("Failed to write: " + oldItem + " -> " + item, e);
                }
            }
    
            public void write(final String line) {
                try {
                    writer.write(line);
                    writer.write(Constants.LINE_SEPARATOR);
                } catch (final IOException e) {
                    throw new DictionaryException("Failed to write: " + line, e);
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 9.6K bytes
    - Viewed (0)
  10. src/main/java/jcifs/pac/ASN1Util.java

            {
                int b = s.read();
                if (b < 31)
                {
                    if (b < 0)
                    {
                        throw new EOFException("EOF found inside tag value.");
                    }
                    throw new IOException("corrupted stream - high tag number < 31 found");
                }
    
                tagNo = b & 0x7f;
    
                // X.690-0207 8.1.2.4.2
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Mon Oct 02 12:02:06 GMT 2023
    - 6.5K bytes
    - Viewed (0)
Back to top