예제 #1
0
        private MethodException CreateMethodException(int argumentCount)
        {
            var ex = new MethodException(string.Format("Cannot find an overload for \"{0}\" and the argument count: \"{1}\".", Name, argumentCount));

            ex.ErrorRecord = new ErrorRecord(new ParentContainsErrorRecordException(ex),
                                             ExtendedTypeSystemException.MethodCountCouldNotFindBest,
                                             ErrorCategory.NotSpecified,
                                             null);

            return(ex);
        }
예제 #2
0
파일: PSMethodInfo.cs 프로젝트: mauve/Pash
        private MethodException CreateMethodException(int argumentCount)
        {
            var ex = new MethodException(string.Format("Cannot find an overload for \"{0}\" and the argument count: \"{1}\".", Name, argumentCount));

            ex.ErrorRecord = new ErrorRecord(new ParentContainsErrorRecordException(ex),
                ExtendedTypeSystemException.MethodCountCouldNotFindBest,
                ErrorCategory.NotSpecified,
                null);

            return ex;
        }