- Sort Score
- Result 10 results
- Languages All
Results 131 - 140 of 3,054 for throws (0.08 sec)
-
android/guava/src/com/google/common/hash/SneakyThrows.java
* write {@code throw sneakyThrow(t);} to convince the compiler that the statement will always * throw. */ @CanIgnoreReturnValue static Error sneakyThrow(Throwable t) { throw new SneakyThrows<Error>().throwIt(t); } @SuppressWarnings("unchecked") // not really safe, but that's the point private Error throwIt(Throwable t) throws T { throw (T) t; } private SneakyThrows() {}
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Dec 30 18:44:22 UTC 2024 - 2.4K bytes - Viewed (0) -
guava/src/com/google/common/base/SneakyThrows.java
* write {@code throw sneakyThrow(t);} to convince the compiler that the statement will always * throw. */ @CanIgnoreReturnValue static Error sneakyThrow(Throwable t) { throw new SneakyThrows<Error>().throwIt(t); } @SuppressWarnings("unchecked") // not really safe, but that's the point private Error throwIt(Throwable t) throws T { throw (T) t; } private SneakyThrows() {}
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Feb 03 21:52:39 UTC 2025 - 2.4K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbSession.java
* * @return the NTLM challenge from the domain controller * @throws SmbException if an SMB error occurs * @throws UnknownHostException if the domain controller cannot be resolved */ public static NtlmChallenge getChallengeForDomain() throws SmbException, UnknownHostException { if (DOMAIN == null) { throw new SmbException("A domain was not specified"); } synchronized (DOMAIN) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 20.7K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/DelegatingSSLSocketFactory.kt
*/ open class DelegatingSSLSocketFactory( private val delegate: SSLSocketFactory, ) : SSLSocketFactory() { @Throws(IOException::class) override fun createSocket(): SSLSocket { val sslSocket = delegate.createSocket() as SSLSocket return configureSocket(sslSocket) } @Throws(IOException::class) override fun createSocket( host: String, port: Int, ): SSLSocket {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 2.8K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbRandomAccessFile.java
throw SmbException.wrap(e); } } @Override public final boolean readBoolean() throws SmbException { if (read(this.tmp, 0, 1) < 0) { throw new SmbEndOfFileException(); } return this.tmp[0] != (byte) 0x00; } @Override public final byte readByte() throws SmbException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 18.8K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/util/InputStreamThreadTest.java
assertTrue(output.contains("UTF-16 test")); } public void test_run_withIOException() throws InterruptedException { InputStream faultyStream = new InputStream() { @Override public int read() throws IOException { throw new IOException("Test exception"); } };
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 12 07:34:10 UTC 2025 - 11.7K bytes - Viewed (0) -
src/test/java/jcifs/smb1/dcerpc/ndr/NdrShortTest.java
@ParameterizedTest @ValueSource(ints = { 0, 42, 255, -1, 128 }) void encodeDecodeRoundTrip(int original) throws Exception { // The constructor masks to 0xFF (8 bits) int expected = original & 0xFF; NdrShort ns = new NdrShort(original); buf.reset(); ns.encode(buf); // should not throw // After encoding, check how many bytes were used int bytesUsed = buf.getIndex();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SSPContextTest.java
if (token == null) { if (len == 0) { return new byte[0]; } throw new CIFSException("token is null but len > 0"); } if (off < 0 || len < 0 || off > token.length || off + len > token.length) { throw new CIFSException("invalid offset/length"); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.2K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/Service.java
* @param unit the time unit of the timeout argument * @throws TimeoutException if the service has not reached the given state within the deadline * @throws IllegalStateException if the service {@linkplain State#FAILED fails}. * @since 15.0 */ @SuppressWarnings("GoodTime") // should accept a java.time.Duration void awaitTerminated(long timeout, TimeUnit unit) throws TimeoutException; /**
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/SmbTransportPool.java
* @param forceSigning whether to enforce SMB signing * @return a connected transport * @throws UnknownHostException if the host cannot be resolved * @throws IOException if an I/O error occurs */ SmbTransport getSmbTransport(CIFSContext tf, String name, int port, boolean exclusive, boolean forceSigning) throws UnknownHostException, IOException; /** * Get transport connection *
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 7.5K bytes - Viewed (0)