Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,430 for throw (0.15 sec)

  1. guava/src/com/google/common/base/Preconditions.java

     *
     * <p>If the precondition is not met, the {@code Preconditions} method throws an unchecked exception
     * of a specified type, which helps the method in which the exception was thrown communicate that
     * its caller has made a mistake. This allows constructs such as
     *
     * <pre>{@code
     * public static double sqrt(double value) {
     *   if (value < 0) {
     *     throw new IllegalArgumentException("input is negative: " + value);
     *   }
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Feb 14 15:46:55 GMT 2024
    - 52.9K 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)
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Mar 06 15:15:46 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  3. okhttp-testing-support/src/main/kotlin/okhttp3/FakeSSLSession.kt

      ) {
        throw UnsupportedOperationException()
      }
    
      override fun removeValue(s: String) {
        throw UnsupportedOperationException()
      }
    
      override fun getValue(s: String): Any {
        throw UnsupportedOperationException()
      }
    
      override fun getValueNames(): Array<String> {
        throw UnsupportedOperationException()
      }
    
      override fun invalidate() {
        throw UnsupportedOperationException()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/MinimalCollection.java

      public boolean addAll(Collection<? extends E> elementsToAdd) {
        throw up();
      }
    
      @Override
      public boolean removeAll(Collection<?> elementsToRemove) {
        throw up();
      }
    
      @Override
      public boolean retainAll(Collection<?> elementsToRetain) {
        throw up();
      }
    
      @Override
      public void clear() {
        throw up();
      }
    
      private static UnsupportedOperationException up() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/misc/AssertionUtil.java

         *            {@code null} であってはならない引数の名前
         * @param argValue
         *            引数の値
         * @throws NullArgumentException
         *             引数が<code>null</code>の場合。
         */
        public static void assertArgumentNotNull(final String argName, final Object argValue) {
            if (argValue == null) {
                throw new NullArgumentException(argName);
            }
        }
    
        /**
         * 引数が<code>null</code>でも空文字列でもないことを表明します。
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/base/Preconditions.java

     *
     * <p>If the precondition is not met, the {@code Preconditions} method throws an unchecked exception
     * of a specified type, which helps the method in which the exception was thrown communicate that
     * its caller has made a mistake. This allows constructs such as
     *
     * <pre>{@code
     * public static double sqrt(double value) {
     *   if (value < 0) {
     *     throw new IllegalArgumentException("input is negative: " + value);
     *   }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 11 11:52:14 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Writer.kt

        }
      }
    
      @Throws(IOException::class)
      fun flush() {
        this.withLock {
          if (closed) throw IOException("closed")
          sink.flush()
        }
      }
    
      @Throws(IOException::class)
      fun rstStream(
        streamId: Int,
        errorCode: ErrorCode,
      ) {
        this.withLock {
          if (closed) throw IOException("closed")
          require(errorCode.httpCode != -1)
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableRangeMap.java

      @DoNotCall("Always throws UnsupportedOperationException")
      public final void putCoalescing(Range<K> range, V value) {
        throw new UnsupportedOperationException();
      }
    
      /**
       * Guaranteed to throw an exception and leave the {@code RangeMap} unmodified.
       *
       * @throws UnsupportedOperationException always
       * @deprecated Unsupported operation.
       */
      @Deprecated
      @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 14.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

          throw t;
        }
      }
    
      /** Calls threadFail with message "should throw exception". */
      public void threadShouldThrow() {
        threadFail("should throw exception");
      }
    
      /** Calls threadFail with message "should throw" + exceptionName. */
      public void threadShouldThrow(String exceptionName) {
        threadFail("should throw " + exceptionName);
      }
    
      /**
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.7K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/sql/PreparedStatementUtil.java

         * @return {@link ResultSet}
         * @throws SQLRuntimeException
         *             {@link SQLException}が発生した場合
         */
        public static ResultSet executeQuery(final PreparedStatement ps) throws SQLRuntimeException {
            assertArgumentNotNull("ps", ps);
    
            try {
                return ps.executeQuery();
            } catch (final SQLException ex) {
                throw new SQLRuntimeException(ex);
            }
        }
    
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.9K bytes
    - Viewed (0)
Back to top