Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for getException (0.08 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. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/TransferListenerAdapter.java

                ArtifactTransferResource artifact = wrap(event.getWagon().getRepository(), event.getResource());
    
                ArtifactTransferEvent evt;
                if (event.getException() != null) {
                    evt = new ArtifactTransferEvent(wagon, event.getException(), event.getRequestType(), artifact);
                } else {
                    evt = new ArtifactTransferEvent(wagon, event.getEventType(), event.getRequestType(), artifact);
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. compat/maven-compat/src/main/java/org/apache/maven/profiles/DefaultProfileManager.java

                if (!ModelProblem.Severity.WARNING.equals(req.getSeverity())) {
                    errors.add(new ProfileActivationException(req.getMessage(), req.getException()));
                }
            });
    
            if (!errors.isEmpty()) {
                throw errors.get(0);
            }
    
            return profiles;
        }
    
        /* (non-Javadoc)
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  9. compat/maven-compat/src/main/java/org/apache/maven/repository/ArtifactTransferEvent.java

        }
    
        public ArtifactTransferResource getResource() {
            return artifact;
        }
    
        /**
         * @return Returns the exception.
         */
        public Exception getException() {
            return exception;
        }
    
        /**
         * Returns the request type.
         *
         * @return Returns the request type. The Request type is one of
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  10. compat/maven-compat/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java

                                    "Failed to process POM for " + artifact.getId() + ": " + missingParentPom.getMessage(),
                                    missingParentPom.getException(),
                                    artifact);
                        }
    
                        String message;
    
                        if (isMissingPom(e)) {
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Mar 26 10:49:22 UTC 2025
    - 30.4K bytes
    - Viewed (0)
Back to top