I believe the usual c# syntax works. It should print out to the console, at least I'm pretty sure. throw new Exception();