Java Code Examples for org.eclipse.aether.transfer.TransferEvent#getException()
The following examples show how to use
org.eclipse.aether.transfer.TransferEvent#getException() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FailureReportingTransferListener.java From thorntail with Apache License 2.0 | 6 votes |
public String failuresAsString() { StringBuilder sb = new StringBuilder(); for (Map.Entry<String, List<TransferEvent>> entry : this.transfers.entrySet()) { final String resourceName = entry.getKey(); for (TransferEvent event : entry.getValue()) { sb.append("Failed") .append(event.getRequestType() == TransferEvent.RequestType.PUT ? " uploading " : " downloading ") .append(resourceName) .append(event.getRequestType() == TransferEvent.RequestType.PUT ? " into " : " from ") .append(event.getResource().getRepositoryUrl()).append(". "); if (event.getException() != null) { sb.append("Reason: \n").append(event.getException()); } sb.append('\n'); } } return sb.toString(); }
Example 2
Source File: FailureReportingTransferListener.java From ARCHIVE-wildfly-swarm with Apache License 2.0 | 6 votes |
public String failuresAsString() { StringBuilder sb = new StringBuilder(); for (Map.Entry<String, List<TransferEvent>> entry : this.transfers.entrySet()) { final String resourceName = entry.getKey(); for (TransferEvent event : entry.getValue()) { sb.append("Failed") .append(event.getRequestType() == TransferEvent.RequestType.PUT ? " uploading " : " downloading ") .append(resourceName) .append(event.getRequestType() == TransferEvent.RequestType.PUT ? " into " : " from ") .append(event.getResource().getRepositoryUrl()).append(". "); if (event.getException() != null) { sb.append("Reason: \n").append(event.getException()); } sb.append('\n'); } } return sb.toString(); }
Example 3
Source File: ConsoleTransferListener.java From qpid-broker-j with Apache License 2.0 | 5 votes |
@Override public void transferFailed(TransferEvent event) { transferCompleted(event); if (!(event.getException() instanceof MetadataNotFoundException)) { event.getException().printStackTrace(_out); } }
Example 4
Source File: LoggingTransferListener.java From maven-repository-tools with Eclipse Public License 1.0 | 5 votes |
@Override public void transferFailed( TransferEvent event ) { transferCompleted( event ); if ( !( event.getException() instanceof MetadataNotFoundException ) ) { logger.info( event.getException().getMessage() ); } }
Example 5
Source File: ConsoleTransferListener.java From jenkins-build-monitor-plugin with MIT License | 5 votes |
@Override public void transferFailed(TransferEvent event) { transferCompleted(event); if (!(event.getException() instanceof MetadataNotFoundException)) { event.getException().printStackTrace(out); } }
Example 6
Source File: ConsoleTransferListener.java From BIMserver with GNU Affero General Public License v3.0 | 5 votes |
@Override public void transferFailed(TransferEvent event) { transferCompleted(event); if (!(event.getException() instanceof MetadataNotFoundException)) { event.getException().printStackTrace(out); } }