Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 335 for IllegalStateException (0.23 sec)

  1. android/guava/src/com/google/common/collect/AbstractIterator.java

       * {@code next} invocation that invoked this method. Any further attempts to use the iterator will
       * result in an {@link IllegalStateException}.
       *
       * <p>The implementation of this method may not invoke the {@code hasNext}, {@code next}, or
       * {@link #peek()} methods on this instance; if it does, an {@code IllegalStateException} will
       * result.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Mar 18 02:04:10 GMT 2022
    - 6.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/graph/NetworkEquivalenceTest.java

          default:
            throw new IllegalStateException("Unexpected edge type: " + edgeType);
        }
      }
    
      private static EdgeType oppositeType(EdgeType edgeType) {
        switch (edgeType) {
          case UNDIRECTED:
            return EdgeType.DIRECTED;
          case DIRECTED:
            return EdgeType.UNDIRECTED;
          default:
            throw new IllegalStateException("Unexpected edge type: " + edgeType);
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Jun 22 19:09:27 GMT 2017
    - 5.9K bytes
    - Viewed (0)
  3. guava-gwt/test-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/TestPlatform.java

        } catch (Exception e) {
          assertThat(e).isInstanceOf(IllegalStateException.class);
          assertThat(e).hasMessageThat().isEqualTo("Cannot get() on a pending future.");
        }
      }
    
      static void verifyTimedGetOnPendingFuture(Future<?> future) {
        try {
          future.get(0, SECONDS);
          fail();
        } catch (Exception e) {
          assertThat(e).isInstanceOf(IllegalStateException.class);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Nov 26 19:19:13 GMT 2018
    - 2.3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/ClosingFutureFinishToFutureTest.java

                  }
                },
                executor);
        FluentFuture<Closeable> unused = closingFuture.finishToFuture();
        assertThrows(
            IllegalStateException.class,
            () -> {
              FluentFuture<Closeable> unused2 = closingFuture.finishToFuture();
            });
      }
    
      public void testFinishToFuture_throwsAfterCallingFinishToValueAndCloser() throws Exception {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  5. native-image-tests/src/main/kotlin/okhttp3/TestRegistration.kt

     * limitations under the License.
     */
    package okhttp3
    
    import com.oracle.svm.core.annotate.AutomaticFeature
    import java.io.File
    import java.lang.IllegalStateException
    import org.graalvm.nativeimage.hosted.Feature
    import org.graalvm.nativeimage.hosted.RuntimeClassInitialization
    import org.graalvm.nativeimage.hosted.RuntimeReflection
    
    @AutomaticFeature
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/ResponseJvmTest.kt

        val response =
          newResponse("".toResponseBody()) {
            // All live paths (Http1, Http2) in OkHttp do this
            trailers { error("trailers not available") }
          }
    
        assertFailsWith<IllegalStateException>(message = "trailers not available") {
          response.trailers()
        }
      }
    
      @Test
      fun worksIfTrailersSet() {
        val response =
          newResponse("".toResponseBody()) {
            trailers {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  7. maven-compat/src/main/java/org/apache/maven/project/ProjectUtils.java

                throw new IllegalStateException(e);
            }
        }
    
        private static RepositorySystemSession rss(PlexusContainer c) {
            try {
                LegacySupport legacySupport = c.lookup(LegacySupport.class);
    
                return legacySupport.getRepositorySession();
            } catch (ComponentLookupException e) {
                throw new IllegalStateException(e);
            }
        }
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Dec 26 15:12:32 GMT 2022
    - 3.8K bytes
    - Viewed (0)
  8. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultSuperPomProvider.java

            String resource = "/org/apache/maven/model/pom-" + v + ".xml";
            URL url = getClass().getResource(resource);
            if (url == null) {
                throw new IllegalStateException("The super POM " + resource + " was not found"
                        + ", please verify the integrity of your Maven installation");
            }
            try (InputStream is = url.openStream()) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 3K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/internal/UtilTest.kt

        assertThat(checkDuration("timeout", 0, TimeUnit.MILLISECONDS)).isEqualTo(0)
        assertThat(checkDuration("timeout", 1, TimeUnit.MILLISECONDS)).isEqualTo(1)
    
        assertThat(
          assertThrows<IllegalStateException> {
            checkDuration("timeout", -1, TimeUnit.MILLISECONDS)
          },
        ).hasMessage("timeout < 0")
        assertThat(
          assertThrows<IllegalArgumentException> {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/UncheckedThrowingFuture.java

        if (!super.setException(new WrapperException(checkNotNull(e)))) {
          throw new IllegalStateException("Future was already complete: " + this);
        }
      }
    
      public void complete(Error e) {
        if (!super.setException(new WrapperException(checkNotNull(e)))) {
          throw new IllegalStateException("Future was already complete: " + this);
        }
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 12 20:02:10 GMT 2018
    - 3.2K bytes
    - Viewed (0)
Back to top