/** * Creates a new exception with the specified result and detail message. * * @param result The descriptor result at the point the exception occurred, may be {@code null}. * @param message The detail message, may be {@code null}. */ public ArtifactDescriptorException( ArtifactDescriptorResult result, String message ) { super( message, getCause( result ) ); this.result = result; }
/** * Creates a new exception with the specified result and detail message. * * @param result The descriptor result at the point the exception occurred, may be {@code null}. * @param message The detail message, may be {@code null}. */ public ArtifactDescriptorException( ArtifactDescriptorResult result, String message ) { super( message, getCause( result ) ); this.result = result; }
/** * Creates a new exception with the specified result. * * @param result The descriptor result at the point the exception occurred, may be {@code null}. */ public ArtifactDescriptorException( ArtifactDescriptorResult result ) { super( "Failed to read artifact descriptor" + ( result != null ? " for " + result.getRequest().getArtifact() : "" ), getCause( result ) ); this.result = result; }
/** * Creates a new exception with the specified result. * * @param result The descriptor result at the point the exception occurred, may be {@code null}. */ public ArtifactDescriptorException( ArtifactDescriptorResult result ) { super( "Failed to read artifact descriptor" + ( result != null ? " for " + result.getRequest().getArtifact() : "" ), getCause( result ) ); this.result = result; }