Exemplo n.º 1
0
 private PcfException BuildParameterError(int parameter, ParameterErrorType errorType)
 {
     return(PcfException.Build(2, PcfException.MqrccfCfilParmIdError, (data) =>
     {
         data.AddOrReplace("Parameter", parameter);
         data.AddOrReplace("Error", errorType.ToString());
     }));
 }
Exemplo n.º 2
0
        public static PcfException Build(int compCode, int reason, Action <IDictionary> extraInfo = null)
        {
            var ex = new PcfException(compCode, reason);

            if (extraInfo != null)
            {
                extraInfo.Invoke(ex.Data);
            }
            return(ex);
        }