Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 299 for throwing (0.17 sec)

  1. build-logic/documentation/src/test/groovy/gradlebuild/docs/model/SimpleClassMetaDataRepositoryTest.groovy

            given:
            repository.put('unkown', new TestDomainObject('unknown'))
    
            when:
            repository.get('unknown')
    
            then:
            UnknownDomainObjectException e = thrown()
            e.message == 'No meta-data is available for class \'unknown\'. Did you mean? [unkown]'
        }
    
        def getFailsForWrongPackage() {
            given:
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Sat Apr 06 02:21:33 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/net/HostSpecifierTest.java

      }
    
      private void assertBad(String spec) {
        try {
          HostSpecifier.fromValid(spec);
          fail("Should have thrown IllegalArgumentException: " + spec);
        } catch (IllegalArgumentException expected) {
        }
    
        try {
          HostSpecifier.from(spec);
          fail("Should have thrown ParseException: " + spec);
        } catch (ParseException expected) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Feb 18 15:33:20 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/net/HostSpecifierTest.java

      }
    
      private void assertBad(String spec) {
        try {
          HostSpecifier.fromValid(spec);
          fail("Should have thrown IllegalArgumentException: " + spec);
        } catch (IllegalArgumentException expected) {
        }
    
        try {
          HostSpecifier.from(spec);
          fail("Should have thrown ParseException: " + spec);
        } catch (ParseException expected) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Feb 18 15:33:20 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  4. impl/maven-core/src/main/java/org/apache/maven/execution/BuildResumptionPersistenceException.java

     * KIND, either express or implied.  See the License for the
     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.execution;
    
    /**
     * This exception will be thrown when something fails while persisting build resumption data.
     * @see BuildResumptionDataRepository#persistResumptionData
     */
    public class BuildResumptionPersistenceException extends Exception {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  5. android/guava-testlib/test/com/google/common/testing/TearDownStackTest.java

        try {
          stack.runTearDown();
          fail("runTearDown should have thrown an exception");
        } catch (ClusterException expected) {
          assertThat(expected).hasCauseThat().hasMessageThat().isEqualTo("two");
        } catch (RuntimeException e) {
          throw new RuntimeException(
              "A ClusterException should have been thrown, rather than a " + e.getClass().getName(), e);
        }
    
        assertEquals(true, tearDownOne.ran);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 21 10:19:29 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  6. api/maven-api-core/src/main/java/org/apache/maven/api/services/xml/XmlWriterException.java

     * under the License.
     */
    package org.apache.maven.api.services.xml;
    
    import org.apache.maven.api.annotations.Experimental;
    import org.apache.maven.api.services.MavenException;
    
    /**
     * An exception thrown during the writing of an xml file.
     *
     * @since 4.0.0
     */
    @Experimental
    public class XmlWriterException extends MavenException {
    
        private final Location location;
    
        /**
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Mon Mar 25 10:50:01 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  7. guava-testlib/test/com/google/common/testing/TearDownStackTest.java

        try {
          stack.runTearDown();
          fail("runTearDown should have thrown an exception");
        } catch (ClusterException expected) {
          assertThat(expected).hasCauseThat().hasMessageThat().isEqualTo("two");
        } catch (RuntimeException e) {
          throw new RuntimeException(
              "A ClusterException should have been thrown, rather than a " + e.getClass().getName(), e);
        }
    
        assertEquals(true, tearDownOne.ran);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 21 10:19:29 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/eventbus/SubscriberTest.java

      }
    
      @Subscribe
      public void exceptionThrowingMethod(Object arg) throws Exception {
        throw new IntentionalException();
      }
    
      /** Local exception subclass to check variety of exception thrown. */
      class IntentionalException extends Exception {
    
        private static final long serialVersionUID = -2500191180248181379L;
      }
    
      @Subscribe
      public void errorThrowingMethod(Object arg) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  9. guava/src/com/google/common/escape/CharEscaper.java

          // This is the size needed to add the replacement, not the full size
          // needed by the string. We only regrow when we absolutely must, and
          // when we do grow, grow enough to avoid excessive growing. Grow.
          int sizeNeeded = destIndex + charsSkipped + rlen;
          if (destSize < sizeNeeded) {
            destSize = sizeNeeded + DEST_PAD_MULTIPLIER * (slen - index);
            dest = growBuffer(dest, destIndex, destSize);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jan 18 20:55:09 UTC 2022
    - 6.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/ListenableFuture.java

       * this method is guaranteed to be called once the computation is complete.
       *
       * <p>Exceptions thrown by a listener will be propagated up to the executor. Any exception thrown
       * during {@code Executor.execute} (e.g., a {@code RejectedExecutionException} or an exception
       * thrown by {@linkplain MoreExecutors#directExecutor direct execution}) will be caught and
       * logged.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jun 26 21:13:41 UTC 2023
    - 8K bytes
    - Viewed (0)
Back to top