Basic Examples 
(3)
 

Throw and catch a generic
Failure
:
ResourceFunction["CatchFailure"]
[◼]
ThrowFailure
["There was an error!",myFunc];Print["goodbye"]
Out[53]=
Failure

MessageTemplate:
General::There was an error!
MessageParameters: {myFunc}
Tag: General

———
Throw and catch a
Failure
using the specified message template and tag:
ResourceFunction["CatchFailure"]
[◼]
ThrowFailure
[myFunc::argx,Pi,2.9];Print["goodbye"]
Out[43]=
Failure

Message:
π
called with
2.9
arguments; 1 argument is expected.
Tag:
myFunc

———
Throw and catch
$Failed
:
ResourceFunction["CatchFailure"]
[◼]
ThrowFailure
[];Print["goodbye"]
Out[34]=
$Failed

Possible Issues 
(1)
 
