Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 71 for setException (0.12 sec)

  1. guava/src/com/google/common/cache/LocalCache.java

        @CanIgnoreReturnValue
        public boolean set(@CheckForNull V newValue) {
          return futureValue.set(newValue);
        }
    
        @CanIgnoreReturnValue
        public boolean setException(Throwable t) {
          return futureValue.setException(t);
        }
    
        private ListenableFuture<V> fullyFailedFuture(Throwable t) {
          return immediateFailedFuture(t);
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 149.2K bytes
    - Viewed (0)
  2. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultEvent.java

            return Optional.ofNullable(delegate.getMojoExecution()).map(me -> new DefaultMojoExecution(session, me));
        }
    
        @Override
        public Optional<Exception> getException() {
            return Optional.ofNullable(delegate.getException());
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2K bytes
    - Viewed (0)
  3. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelProblemCollector.java

            if (modelId == null) {
                modelId = getModelId();
                source = getSource();
            }
    
            if (line <= 0 && column <= 0 && req.getException() instanceof ModelParseException) {
                ModelParseException e = (ModelParseException) req.getException();
                line = e.getLineNumber();
                column = e.getColumnNumber();
            }
    
            ModelProblem problem = new DefaultModelProblem(
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  4. impl/maven-core/src/main/java/org/apache/maven/internal/aether/LoggingRepositoryListener.java

            logger.debug("Installing {} to {}", event.getMetadata(), event.getFile());
        }
    
        @Override
        public void metadataResolved(RepositoryEvent event) {
            Exception e = event.getException();
            if (e != null) {
                if (e instanceof MetadataNotFoundException) {
                    logger.debug(e.getMessage());
                } else if (logger.isDebugEnabled()) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  5. compat/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/util/ConsoleTransferListener.java

        }
    
        @Override
        public void transferFailed(TransferEvent event) {
            transferCompleted(event);
    
            println(
                    "transferFailed",
                    event.getException().getClass() + ": " + event.getException().getMessage());
        }
    
        private void transferCompleted(TransferEvent event) {
            downloads.remove(event.getResource());
    
            StringBuilder buffer = new StringBuilder(64);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  6. compat/maven-builder-support/src/test/java/org/apache/maven/building/DefaultProblemCollectorTest.java

            assertEquals(-1, p1.getColumnNumber());
            assertNull(p1.getException());
    
            Problem p2 = collector.getProblems().get(1);
            assertEquals(Severity.WARNING, p2.getSeverity());
            assertEquals("", p2.getMessage());
            assertEquals(42, p2.getLineNumber());
            assertEquals(127, p2.getColumnNumber());
            assertEquals(e2, p2.getException());
        }
    
        @Test
        void testSetSource() {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  7. 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 Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Nov 14 17:41:04 UTC 2021
    - 49K bytes
    - Viewed (0)
  8. 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 Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5K bytes
    - Viewed (0)
  9. compat/maven-builder-support/src/test/java/org/apache/maven/building/DefaultProblemTest.java

        void testGetException() {
            DefaultProblem problem = new DefaultProblem(null, null, null, -1, -1, null);
            assertNull(problem.getException());
    
            Exception e = new Exception();
            problem = new DefaultProblem(null, null, null, -1, -1, e);
            assertSame(e, problem.getException());
        }
    
        @Test
        void testGetSource() {
            DefaultProblem problem = new DefaultProblem(null, null, null, -1, -1, null);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  10. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProjectBuilder.java

                                return buffer.toString();
                            }
    
                            @Override
                            public Exception getException() {
                                return problem.getException();
                            }
    
                            @Override
                            public String getMessage() {
                                return problem.getMessage();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8K bytes
    - Viewed (0)
Back to top