Is there a a trick to raising Exceptions with plug...
# nextflow-plugins
n
Is there a a trick to raising Exceptions with plugins? I haven’t successfully gotten my
TraceObserverV2
class to stop execution of the pipeline; I’ve tried
throw new Exception
and
assert
statements and neither seems to do the trick. I’m just trying to raise an error if my onFilePublish hook fails for some reason
b
the
error
function in Nextflow throws a
WorkflowScriptErrorException
under the hood, so I guess you could do that
n
Thank you both!