Adding exception raising option to the `trigger` method