Class ArtifactDescriptorException

  • All Implemented Interfaces:
    java.io.Serializable

    public class ArtifactDescriptorException
    extends RepositoryException
    Thrown in case of an unreadable or unresolvable artifact descriptor.
    See Also:
    Serialized Form
    • Constructor Detail

      • ArtifactDescriptorException

        public ArtifactDescriptorException​(ArtifactDescriptorResult result)
        Creates a new exception with the specified result.
        Parameters:
        result - The descriptor result at the point the exception occurred, may be null.
      • ArtifactDescriptorException

        public ArtifactDescriptorException​(ArtifactDescriptorResult result,
                                           java.lang.String message)
        Creates a new exception with the specified result and detail message.
        Parameters:
        result - The descriptor result at the point the exception occurred, may be null.
        message - The detail message, may be null.
      • ArtifactDescriptorException

        public ArtifactDescriptorException​(ArtifactDescriptorResult result,
                                           java.lang.String message,
                                           java.lang.Throwable cause)
        Creates a new exception with the specified result, detail message and cause.
        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 Detail

      • getResult

        public ArtifactDescriptorResult getResult()
        Gets 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 null if unknown.