Package org.eclipse.aether.resolution
Class ArtifactDescriptorException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.eclipse.aether.RepositoryException
org.eclipse.aether.resolution.ArtifactDescriptorException
- All Implemented Interfaces:
- Serializable
Thrown in case of an unreadable or unresolvable artifact descriptor.
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionCreates a new exception with the specified result.ArtifactDescriptorException(ArtifactDescriptorResult result, String message) Creates a new exception with the specified result and detail message.ArtifactDescriptorException(ArtifactDescriptorResult result, String message, Throwable cause) Creates a new exception with the specified result, detail message and cause.
- 
Method SummaryModifier and TypeMethodDescriptionGets the descriptor result at the point the exception occurred.Methods inherited from class org.eclipse.aether.RepositoryExceptiongetMessageMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
ArtifactDescriptorExceptionCreates a new exception with the specified result. Cause will be first selected exception from result, if applicable. All exceptions are added as suppressed as well.- Parameters:
- result- The descriptor result at the point the exception occurred, may be- null.
 
- 
ArtifactDescriptorExceptionCreates a new exception with the specified result and detail message. Cause will be first selected exception from result, if applicable. All exceptions are added as suppressed as well.- Parameters:
- result- The descriptor result at the point the exception occurred, may be- null.
- message- The detail message, may be- null.
 
- 
ArtifactDescriptorExceptionpublic ArtifactDescriptorException(ArtifactDescriptorResult result, String message, Throwable cause) Creates a new exception with the specified result, detail message and cause. All exceptions are added as suppressed as well.- Parameters:
- result- The descriptor result at the point the exception occurred, may be- null.
- message- The detail message, may be- null.
- cause- The exception that caused this one, may be- null.
 
 
- 
- 
Method Details- 
getResultGets the descriptor result at the point the exception occurred. Despite being incomplete, callers might want to use this result to fail gracefully and continue their operation with whatever interim data has been gathered.- Returns:
- The descriptor result or nullif unknown.
 
 
-