- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 119 for SmbException (1.3 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
src/main/java/jcifs/smb1/smb1/SmbException.java
/** The root cause exception */ private Throwable rootCause; SmbException() { } SmbException(final int errcode, final Throwable rootCause) { super(getMessageByCode(errcode)); status = getStatusByCode(errcode); this.rootCause = rootCause; } SmbException(final String msg) { super(msg); status = NT_STATUS_UNSUCCESSFUL; }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 6K bytes - Click Count (0) -
src/main/java/jcifs/SmbException.java
*/ public SmbException(String message, int errorCode, Category category) { this(message, errorCode, Severity.PERMANENT, category); } /** * Adds context information to the exception * * @param key the context key * @param value the context value * @return this exception for chaining */ public SmbException withContext(String key, Object value) {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 6.4K bytes - Click Count (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"); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 16.6K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbRandomAccessFile.java
* @throws SmbException if an SMB error occurs */ public SmbRandomAccessFile(final SmbFile file, final String mode) throws SmbException { this(file, mode, SmbConstants.DEFAULT_SHARING, false); } /** * Instantiate a random access file from a {@link SmbFile} * * @param file * @param mode * @throws SmbException */Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 18.8K bytes - Click Count (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 {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 14.1K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbRandomAccessFileTest.java
} @Test void testConstructor() throws SmbException { assertNotNull(smbRandomAccessFile); assertEquals(0, smbRandomAccessFile.getFilePointer()); } @Test void testGetFilePointer() throws SmbException { assertEquals(0, smbRandomAccessFile.getFilePointer()); } @Test void testSeek() throws SmbException { long newPosition = 100L;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.3K bytes - Click Count (0) -
src/test/java/jcifs/smb/DosFileFilterTest.java
SmbException expectedException = new SmbException("Failed to get attributes"); when(mockFile.getAttributes()).thenThrow(expectedException); // When calling accept // Then an SmbException should be thrown SmbException thrown = assertThrows(SmbException.class, () -> { dosFileFilter.accept(mockFile); });Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 6.2K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbTreeHandleImpl.java
return transport.getRemoteHostName(); } } /** * {@inheritDoc} * * @throws SmbException * * @see jcifs.SmbTreeHandle#getServerTimeZoneOffset() */ @Override public long getServerTimeZoneOffset() throws SmbException { try (SmbSessionImpl session = this.treeConnection.getSession(); SmbTransportImpl transport = session.getTransport()) {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 11.1K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbFileTest.java
} @Test void testListFilesOnNonDirectory() throws SmbException { // Arrange doReturn(false).when(smbFile).isDirectory(); doThrow(new SmbException("Not a directory")).when(smbFile).listFiles(); // Act & Assert assertThrows(SmbException.class, () -> smbFile.listFiles()); } } @NestedCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 20.8K bytes - Click Count (0) -
src/main/java/jcifs/SmbRandomAccess.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 2.6K bytes - Click Count (0)