Hi,
The throw() and logError() functions are unavailable at the MTA for some reason.
Campaign allows you to modify the message object though, and will use the modifications. So just trash it
<% if (ctx.pleaseFail == '1') message = 1; %>
Sending <ctx><pleaseFail>1</pleaseFail></ctx> in payload will fail that message.
Thanks,
-Jon