- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 269 for IllegalStateException (0.11 sec)
-
src/test/java/jcifs/http/HandlerTest.java
// throws an IllegalStateException as per the contract. URLStreamHandlerFactory mockFactory1 = mock(URLStreamHandlerFactory.class); URLStreamHandlerFactory mockFactory2 = mock(URLStreamHandlerFactory.class); Handler.setURLStreamHandlerFactory(mockFactory1); // First call, should succeed. assertThrows(IllegalStateException.class, () -> {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.1K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/ReflectionFreeAssertThrows.java
.put(ExecutionException.class, e -> e instanceof ExecutionException) .put(IllegalArgumentException.class, e -> e instanceof IllegalArgumentException) .put(IllegalStateException.class, e -> e instanceof IllegalStateException) .put(IndexOutOfBoundsException.class, e -> e instanceof IndexOutOfBoundsException) .put(NoSuchElementException.class, e -> e instanceof NoSuchElementException)
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 6.3K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Preconditions.java
* involving any parameters to the calling method. * * @param expression a boolean expression * @throws IllegalStateException if {@code expression} is false * @see Verify#verify Verify.verify() */ public static void checkState(boolean expression) { if (!expression) { throw new IllegalStateException(); } } /**
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Jul 10 22:11:00 UTC 2025 - 53K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/collect/testing/MinimalIterableTest.java
Iterator<String> iterator = iterable.iterator(); assertFalse(iterator.hasNext()); assertThrows(NoSuchElementException.class, () -> iterator.next()); assertThrows(IllegalStateException.class, () -> iterable.iterator()); } public void testOf_one() { Iterable<String> iterable = MinimalIterable.of("a"); Iterator<String> iterator = iterable.iterator(); assertTrue(iterator.hasNext());
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 2.6K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/AbstractService.java
// Handle this specially so that we can include the failureCause, if there is one. throw new IllegalStateException( "Expected the service " + this + " to be " + expected + ", but the service has FAILED", failureCause()); } throw new IllegalStateException( "Expected the service " + this + " to be " + expected + ", but was " + actual); } } /**
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Feb 19 21:24:11 UTC 2025 - 20.3K bytes - Viewed (0) -
guava/src/com/google/common/io/ByteStreams.java
try { input.readFully(b); } catch (IOException e) { throw new IllegalStateException(e); } } @Override public void readFully(byte[] b, int off, int len) { try { input.readFully(b, off, len); } catch (IOException e) { throw new IllegalStateException(e); } } @Override public int skipBytes(int n) { try {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Jul 17 15:26:41 UTC 2025 - 31.1K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/Service.java
* * @throws IllegalStateException if the service reaches a state from which it is not possible to * enter the {@link State#RUNNING} state. e.g. if the {@code state} is {@code * State#TERMINATED} when this method is called then this will throw an IllegalStateException. * @since 15.0 */ void awaitRunning(); /**
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 10.8K bytes - Viewed (0) -
src/main/java/jcifs/smb1/util/HMACT64.java
ipad[i] = IPAD; opad[i] = OPAD; } try { md5 = MessageDigest.getInstance("MD5"); } catch (final Exception ex) { throw new IllegalStateException(ex.getMessage()); } engineReset(); } private HMACT64(final HMACT64 hmac) throws CloneNotSupportedException { super("HMACT64"); this.ipad = hmac.ipad;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 3.6K bytes - Viewed (0) -
src/main/java/org/codelibs/core/exception/ClIllegalStateException.java
* governing permissions and limitations under the License. */ package org.codelibs.core.exception; /** * Exception that wraps {@link IllegalStateException}. * * @author wyukawa */ public class ClIllegalStateException extends IllegalStateException { private static final long serialVersionUID = -2154525994315946504L; /** * Creates a {@link ClIllegalStateException}. */
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jun 19 09:12:22 UTC 2025 - 1.7K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/AbstractService.java
// Handle this specially so that we can include the failureCause, if there is one. throw new IllegalStateException( "Expected the service " + this + " to be " + expected + ", but the service has FAILED", failureCause()); } throw new IllegalStateException( "Expected the service " + this + " to be " + expected + ", but was " + actual); } } /**
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Feb 19 21:24:11 UTC 2025 - 20.7K bytes - Viewed (0)