Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 78 for SmbException (0.06 sec)

  1. src/main/java/jcifs/smb/SmbException.java

            return this.getCause();
        }
    
        /**
         * @param e
         * @return a CIFS exception wrapped in an SmbException
         */
        static SmbException wrap(final CIFSException e) {
            if (e instanceof SmbException) {
                return (SmbException) e;
            }
            return new SmbException(e.getMessage(), e);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  2. 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;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6K bytes
    - Viewed (0)
  3. 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) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbExceptionTest.java

        void testRetriableExceptions() {
            // Test non-retriable errors
            SmbException accessDenied = new SmbException(NtStatus.NT_STATUS_ACCESS_DENIED, false);
            // Note: isRetriable() method does not exist in SmbException
            assertNotNull(accessDenied);
    
            SmbException notFound = new SmbException(NtStatus.NT_STATUS_OBJECT_NAME_NOT_FOUND, false);
            assertNotNull(notFound);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/SmbExceptionTest.java

            SmbException ex = new SmbException(0, root);
            assertSame(root, ex.getRootCause());
        }
    
        /**
         * Verify that the string-ctor sets status to {@code NT_STATUS_UNSUCCESSFUL}.
         */
        @Test
        @DisplayName("String constructor sets NT_STATUS_UNSUCCESSFUL status")
        void testStringConstructor() {
            SmbException ex = new SmbException("custom message");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  6. 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;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  7. 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);
            });
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/smb1/SmbAuthExceptionTest.java

            assertEquals(SmbException.getStatusByCode(code), e.getNtStatus(), "status for code " + Integer.toHexString(code));
        }
    
        @Test
        void negativeCodeDefaultsToUnsuccessful() {
            SmbAuthException e = new SmbAuthException(-1);
            assertEquals(SmbException.getStatusByCode(-1), e.getNtStatus());
            assertEquals(SmbException.getMessageByCode(-1), e.getMessage());
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbFileDirectoryLeasingExtension.java

         * @return array of SmbFile objects representing the directory contents
         * @throws SmbException if an error occurs
         */
        public static SmbFile[] listFilesWithLeasing(SmbFile smbFile) throws SmbException {
            if (!smbFile.isDirectory()) {
                throw new SmbException("Not a directory: " + smbFile.getPath());
            }
    
            try (SmbTreeHandleImpl th = smbFile.ensureTreeConnected()) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbTransportInternal.java

         * @return whether signatures are supported but not required
         * @throws SmbException if an error occurs checking signing status
         */
        boolean isSigningOptional() throws SmbException;
    
        /**
         * Checks if message signing is mandatory for this connection.
         *
         * @return whether signatures are enforced from either side
         * @throws SmbException if an error occurs checking signing status
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.5K bytes
    - Viewed (0)
Back to top