public static void Exception(InteractionOptionParameters <TActor, TTarget> parameters, Common.StringBuilder msg, Exception e) { if (parameters == null) { Common.Exception(msg, e); } else { parameters.PrivateException(msg, e); } }
protected override void OnPerform() { try { mResult.mResult = mItem.Run(mParameters); } catch (Exception e) { InteractionOptionParameters <TActor, TTarget> .Exception(mParameters, new Common.StringBuilder(mItem.ToString()), e); mResult.mResult = OptionResult.Failure; } }
public bool Test(TParameters parameters) { try { if (string.IsNullOrEmpty(Name)) { return(false); } return(Allow(parameters)); } catch (Exception e) { InteractionOptionParameters <TActor, TTarget> .Exception(parameters, e); return(false); } }
public static void Exception(InteractionOptionParameters <TActor, TTarget> parameters, Exception e) { Exception(parameters, new Common.StringBuilder(), e); }