- Sort Score
- Num 10 results
- Language All
Results 291 - 300 of 2,828 for exception (0.74 seconds)
-
src/test/java/jcifs/http/HandlerTest.java
// This test verifies that attempting to open a connection for an unsupported protocol // results in an IOException, as no default handler should be found. assertThrows(IOException.class, () -> { handler.openConnection(new URL("unknownprotocol://somehost/path")); }, "Should throw IOException for an unknown protocol."); } @Test void testSetURLStreamHandlerFactory_SuccessFirstTime() {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.1K bytes - Click Count (0) -
src/main/java/org/codelibs/core/exception/SQLRuntimeException.java
* governing permissions and limitations under the License. */ package org.codelibs.core.exception; import static org.codelibs.core.collection.ArrayUtil.asArray; import java.sql.SQLException; import org.codelibs.core.message.MessageFormatter; /** * Exception that wraps {@link SQLException}. * * @author higa * @author manhole */Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jun 19 09:12:22 GMT 2025 - 2.5K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/multichannel/ChannelManagerTest.java
IOException error = new IOException("Test error"); // Should not throw exception assertDoesNotThrow(() -> channelManager.handleChannelFailure(channel, error)); } @Test void testEstablishReplacementChannel() { // Should not throw exception even when no interfaces are availableCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 21 11:13:46 GMT 2025 - 7.6K bytes - Click Count (0) -
src/main/java/jcifs/smb1/util/transport/TransportException.java
package jcifs.smb1.util.transport; import java.io.IOException; import java.io.PrintWriter; import java.io.StringWriter; /** * Exception thrown when transport-level errors occur in JCIFS SMB communication. */ public class TransportException extends IOException { /** The root cause exception */ private Throwable rootCause; /** * Constructs a new TransportException with no detail message. */Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 1.8K bytes - Click Count (0) -
src/test/java/org/codelibs/core/io/SerializeUtilTest.java
import java.util.List; import java.util.Map; import java.util.Set; import org.codelibs.core.exception.IORuntimeException; import junit.framework.TestCase; /** * @author higa * */ public class SerializeUtilTest extends TestCase { /** * @throws Exception */ public void testSerialize() throws Exception { final String[] a = new String[] { "1", "2" };Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat Nov 22 11:21:59 GMT 2025 - 7.6K bytes - Click Count (0) -
src/test/java/jcifs/internal/witness/WitnessClientTest.java
assertThrows(Exception.class, () -> { future.get(5, TimeUnit.SECONDS); }); client.close(); } @Test void testNotificationDelivery() throws Exception { // Setup successful registration WitnessRegisterResponse mockResponse = mock(WitnessRegisterResponse.class);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 23 09:06:40 GMT 2025 - 9.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/hash/HashingOutputStreamTest.java
@SuppressWarnings("DoNotMock") @Override protected void setUp() throws Exception { super.setUp(); hasher = mock(Hasher.class); hashFunction = mock(HashFunction.class); when(hashFunction.newHasher()).thenReturn(hasher); } public void testWrite_putSingleByte() throws Exception { int b = 'q'; HashingOutputStream out = new HashingOutputStream(hashFunction, buffer);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 3.2K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbTransportPoolImplTest.java
// Both transports fail SmbTransportImpl trans1 = mock(SmbTransportImpl.class); SmbTransportImpl trans2 = mock(SmbTransportImpl.class); IOException firstException = new IOException("First failure"); IOException secondException = new IOException("Second failure"); when(trans1.unwrap(SmbTransportImpl.class)).thenReturn(trans1); when(trans1.ensureConnected()).thenThrow(firstException);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 19.2K bytes - Click Count (0) -
docs/en/docs/tutorial/dependencies/dependencies-with-yield.md
If you want to catch exceptions and create a custom response based on that, create a [Custom Exception Handler](../handling-errors.md#install-custom-exception-handlers). ## Dependencies with `yield` and `except` { #dependencies-with-yield-and-except }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 12.6K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/query/PrefixQueryCommandTest.java
import org.apache.lucene.search.PrefixQuery; import org.apache.lucene.search.TermQuery; import org.codelibs.fess.Constants; import org.codelibs.fess.entity.QueryContext; import org.codelibs.fess.exception.InvalidQueryException; import org.codelibs.fess.mylasta.direction.FessConfig; import org.codelibs.fess.util.ComponentUtil; import org.dbflute.util.DfTypeUtil; import org.junit.jupiter.api.Test;
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 13.3K bytes - Click Count (0)