- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 2,976 for throw (0.02 sec)
-
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) -
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 * * {@snippet : * public static double sqrt(double value) { * if (value < 0) { * throw new IllegalArgumentException("input is negative: " + value); * }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Jul 10 22:11:00 UTC 2025 - 53K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateResponse.java
throw new SMBProtocolDecodingException("Invalid negotiate context count: " + negotiateContextCount + " (must be 0-100)"); } bufferIndex += 4; // Validate sufficient buffer space for server GUID and capabilities if (buffer.length < bufferIndex + 16 + 4 + 4 + 4 + 4) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 24K bytes - Viewed (0) -
src/main/java/jcifs/util/InputValidator.java
throw new IllegalArgumentException("Offsets and length must be non-negative"); } if (srcOffset + length > src.length) { throw new IllegalArgumentException( "Source array bounds exceeded: offset=" + srcOffset + ", length=" + length + ", array.length=" + src.length); } if (dstOffset + length > dst.length) { throw new IllegalArgumentException(
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 13.5K bytes - Viewed (0) -
src/main/java/jcifs/netbios/NameServiceClientImpl.java
} } throw new UnknownHostException(addr.getHostName()); } @Override public NbtAddress getNbtByName(final String host) throws UnknownHostException { return getNbtByName(host, 0x00, null); } @Override public NbtAddress getNbtByName(final String host, final int type, final String scope) throws UnknownHostException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 38.5K bytes - Viewed (0) -
src/main/java/jcifs/util/ServerResponseValidator.java
* @param maxSize maximum allowed size * @throws SmbException if validation fails */ public void validateBuffer(byte[] buffer, int expectedSize, int maxSize) throws SmbException { totalValidations.incrementAndGet(); if (buffer == null) { failedValidations.incrementAndGet(); throw new SmbException("Response buffer is null"); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 16.6K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NameServiceClientImplTest.java
nameServiceClient.getByName(null); }, "Should throw UnknownHostException for null hostname"); } @Test @DisplayName("Should handle empty hostname in getByName") void testGetByNameWithEmpty() { // When/Then assertThrows(UnknownHostException.class, () -> { nameServiceClient.getByName(""); }, "Should throw UnknownHostException for empty hostname"); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 11K bytes - Viewed (0) -
guava/src/com/google/common/io/ByteStreams.java
* @param len an int specifying the number of bytes to read. * @throws EOFException if this stream reaches the end before reading all the bytes. * @throws IOException if an I/O error occurs. */ public static void readFully(InputStream in, byte[] b, int off, int len) throws IOException { int read = read(in, b, off, len); if (read != len) { throw new EOFException(
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Jul 17 15:26:41 UTC 2025 - 31.1K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java
* @throws SmbException if an I/O error occurs */ public void close() throws SmbException { file.close(); } @Override public final boolean readBoolean() throws SmbException { if (read(tmp, 0, 1) < 0) { throw new SmbException("EOF"); } return 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 - 14.1K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java
if (!features.contains(methodFeature)) { if (stackWithLastReturnedElementAtTop == null) { throw PermittedMetaException.UOE_OR_ISE; } else { throw PermittedMetaException.UOE; } } else if (stackWithLastReturnedElementAtTop == null) { throw PermittedMetaException.ISE; } } private List<E> getElements() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed May 14 19:40:47 UTC 2025 - 21.4K bytes - Viewed (0)