public void Handle( object sender, ExceptionHandlerEventArgs args) { if (args.IsInboundPoolException) { InboundPoolContexts.Add(args.InboundPoolContext); } else { Contexts.Add(args.Context); } }
public void Handle( object sender, ExceptionHandlerEventArgs args) { var context = args.Context; throw new EPException( "Unexpected exception in statement '" + context.StatementName + "': " + context.Exception.Message, context.Exception); }
public void Handle(object sender, ExceptionHandlerEventArgs args) { if (!args.IsInboundPoolException) { var context = args.Context; throw new ApplicationException( string.Format( "Unexpected exception in statement '{0}': {1}", context.StatementName, context.Exception.Message), context.Exception); } }