- Sort Score
- Num 10 results
- Language All
Results 2841 - 2850 of 3,670 for throwIf (0.26 seconds)
-
.teamcity/src/main/kotlin/common/VersionedSettingsBranch.kt
when { isRelease -> "promoteReleaseMilestone" else -> "promoteMilestone" } fun promoteFinalReleaseTaskName(): String = when { isMaster -> throw UnsupportedOperationException("No final release job on master branch") isRelease -> "promoteFinalRelease" else -> "promoteFinalBackportRelease" }Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Mon Dec 29 08:57:18 GMT 2025 - 2.5K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/LookupException.java
* specific language governing permissions and limitations * under the License. */ package org.apache.maven.api.services; import org.apache.maven.api.annotations.Experimental; /** * The Exception class throw by the {@link Lookup} service. * * @since 4.0.0 */ @Experimental public class LookupException extends MavenException { public LookupException(String message) { super(message); }Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Thu Sep 25 21:57:56 GMT 2025 - 1.4K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/MultipartBodyTest.kt
} @Test fun streamingPartHasNoLength() { class StreamingBody( private val body: String, ) : RequestBody() { override fun contentType(): MediaType? = null @Throws(IOException::class) override fun writeTo(sink: BufferedSink) { sink.writeUtf8(body) } } val expected = """ |--123 | |Quick |--123
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 10.5K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exception/FessSystemExceptionTest.java
} @Test public void test_throwAndCatch() { // Test throwing and catching the exception String expectedMessage = "Expected error"; try { throw new FessSystemException(expectedMessage); } catch (FessSystemException e) { assertEquals(expectedMessage, e.getMessage()); assertNull(e.getCause()); } } @TestCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 7.6K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb1/com/SmbComTreeConnectAndX.java
} catch (final GeneralSecurityException e) { throw new RuntimeCIFSException("Failed to encrypt password", e); } this.passwordLength = this.password.length; } else if (this.ctx.getConfig().isDisablePlainTextPasswords()) { throw new RuntimeCIFSException("Plain text passwords are disabled"); } else {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 7.1K bytes - Click Count (0) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/info/BuildParams.java
} private static <T> T value(T object) { if (object == null) { String callingMethod = Thread.currentThread().getStackTrace()[2].getMethodName(); throw new IllegalStateException( "Build parameter '" + propertyName(callingMethod) + "' has not been initialized.\n"Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 22 07:24:59 GMT 2021 - 7.7K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exception/WebApiExceptionTest.java
public void test_throwAndCatch() { // Test throwing and catching the exception int expectedStatusCode = 403; String expectedMessage = "Access denied"; try { throw new WebApiException(expectedStatusCode, expectedMessage); } catch (WebApiException e) { assertEquals(expectedStatusCode, e.getStatusCode()); assertEquals(expectedMessage, e.getMessage());
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 9.5K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/LinkedHashMultisetTest.java
ms.add("a", 3); ms.add("c", 1); ms.add("b", 2); assertThat(ms.toString()).isEqualTo("[a x 3, c, b x 2]"); } public void testLosesPlaceInLine() throws Exception { Multiset<String> ms = LinkedHashMultiset.create(); ms.add("a"); ms.add("b", 2); ms.add("c"); assertThat(ms.elementSet()).containsExactly("a", "b", "c").inOrder(); ms.remove("b");
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 4.6K bytes - Click Count (0) -
src/main/java/jcifs/internal/fscc/FileBasicInfo.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 4.7K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/TransWaitNamedPipeResponseTest.java
*/ @Test void methodsHandleNullBuffersGracefully() { // Arrange TransWaitNamedPipeResponse resp = new TransWaitNamedPipeResponse(); // Act & Assert - no exceptions should be thrown assertDoesNotThrow(() -> resp.writeSetupWireFormat(null, 0)); assertDoesNotThrow(() -> resp.writeParametersWireFormat(null, 0)); assertDoesNotThrow(() -> resp.writeDataWireFormat(null, 0));Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 5.4K bytes - Click Count (0)