Короткий ответ:
throw new Exception("Test Exception");
Вам будет нужно
using System;
How about using $action.mymethod() to get at the information, where mymethod is a method you define in the Action class "MyOperation"? The velocity parameters are fiddly to find out how they get populated.
~Matt