Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for getExceptions (1.67 sec)

  1. src/test/java/jcifs/internal/CommonServerMessageBlockResponseTest.java

        }
    
        @Test
        @DisplayName("Test Response interface methods - getException")
        void testGetException() {
            // Given
            Exception expectedException = new Exception("Test exception");
            when(response.getException()).thenReturn(expectedException);
    
            // When
            Exception actualException = response.getException();
    
            // Then
            assertEquals(expectedException, actualException);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/util/transport/ResponseTest.java

            when(mockResponse.getException()).thenReturn(testException);
            assertEquals(testException, mockResponse.getException());
    
            // Test null exception
            when(mockResponse.getException()).thenReturn(null);
            assertNull(mockResponse.getException());
    
            // Verify the method was called
            verify(mockResponse, times(2)).getException();
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbSessionImpl.java

                } catch (PrivilegedActionException e) {
                    if (e.getException() instanceof SmbException) {
                        throw (SmbException) e.getException();
                    }
                    throw new SmbException("Unexpected exception during context initialization", e);
                }
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 68.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/Smb2EchoResponseTest.java

                assertFalse(echoResponse.isReceived());
                assertNull(echoResponse.getException());
    
                echoResponse.exception(testException);
    
                assertTrue(echoResponse.isError());
                assertTrue(echoResponse.isReceived());
                assertEquals(testException, echoResponse.getException());
            }
    
            @Test
            @DisplayName("Should clear received state")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/util/transport/Response.java

         */
        void reset();
    
        /**
         * Gets the exception associated with this response.
         *
         * @return an exception linked to an error
         */
        Exception getException();
    
        /**
         * Sets an exception for this response.
         *
         * @param e the exception to set
         */
        void exception(Exception e);
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/ServerMessageBlock2Response.java

            this.asyncHandled = asyncHandled;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.util.transport.Response#getException()
         */
        @Override
        public Exception getException() {
            return this.exception;
        }
    
        /**
         *
         * @return error status code
         */
        @Override
        public final int getErrorCode() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/RequestTest.java

                return expiration;
            }
    
            @Override
            public void setExpiration(Long exp) {
                this.expiration = exp;
            }
    
            @Override
            public Exception getException() {
                return exception;
            }
    
            @Override
            public void exception(Exception e) {
                this.exception = e;
            }
    
            // Methods from Message interface
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java

            void testExceptionState() {
                Exception testException = new RuntimeException("Test error");
    
                assertNull(testBlock.getException());
    
                testBlock.exception(testException);
                assertEquals(testException, testBlock.getException());
            }
    
            @Test
            @DisplayName("Test error state")
            void testErrorState() {
                assertFalse(testBlock.isError());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  9. compat/maven-builder-support/src/main/java/org/apache/maven/building/DefaultProblem.java

                }
                buffer.append("column ").append(getColumnNumber());
            }
    
            return buffer.toString();
        }
    
        @Override
        public Exception getException() {
            return exception;
        }
    
        @Override
        public String getMessage() {
            String msg;
    
            if (message != null && !message.isEmpty()) {
                msg = message;
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Jul 23 17:27:08 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  10. src/main/java/jcifs/netbios/NameServiceClientImpl.java

             */
            public NetbiosAddress[] getAnswer() {
                return this.ans;
            }
    
            /**
             * @return the uhe
             */
            public UnknownHostException getException() {
                return this.uhe;
            }
    
        }
    
        NetbiosAddress[] lookupServerOrWorkgroup(final String name, final InetAddress svr) throws UnknownHostException {
            final Sem sem = new Sem(2);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 38.5K bytes
    - Viewed (0)
Back to top