Plugins Artifactory-类型与afterDownloadError()不匹配错误

Plugins Artifactory-类型与afterDownloadError()不匹配错误,plugins,artifactory,Plugins,Artifactory,我正在编写一个插件,利用这里描述的AfterDownloadErrorHook: 但是,当我试图下载一个文件时,这段代码出现以下错误。 我的代码: 错误: Could not process download request: Script execution error: failed to call plugin execution point 'afterDownloadError' - expected a method with arguments types (org.artifac

我正在编写一个插件,利用这里描述的AfterDownloadErrorHook:

但是,当我试图下载一个文件时,这段代码出现以下错误。 我的代码:

错误:

Could not process download request: Script execution error: failed to call plugin execution point 'afterDownloadError' - expected a method with arguments types (org.artifactory.webapp.servlet.HttpArtifactoryRequest)"

我使用的是ArtifactoryPro 5.1.4。我还尝试导入并将httpartifactryRequest传递给afterDownloadError闭包,但这也不起作用。这里似乎有一个bug或文档问题,或者两者都有。

好的,我会回答我自己的帖子-我的脚本在afterDownloadError闭包中抛出了一个异常,但在我意识到发生了什么之前,错误消息有点混乱

Could not process download request: Script execution error: failed to call plugin execution point 'afterDownloadError' - expected a method with arguments types (org.artifactory.webapp.servlet.HttpArtifactoryRequest)"