예제 #1
0
 /// <summary>
 /// System.Reflection.AmbiguousMatchException with message like "There are valid conversions from {0} to {1}."
 /// </summary>
 internal static Exception AmbiguousConversion(object p0, object p1)
 {
     return(new System.Reflection.AmbiguousMatchException(Strings.AmbiguousConversion(p0, p1)));
 }
예제 #2
0
 /// <summary>
 /// NotImplementedException with message like "Variant.GetAccessor cannot handle {0}."
 /// </summary>
 internal static Exception VariantGetAccessorNYI(object p0)
 {
     return(new NotImplementedException(Strings.VariantGetAccessorNYI(p0)));
 }
예제 #3
0
 /// <summary>
 /// ArgumentException with message like "IDispatch::GetIDsOfNames behaved unexpectedly for {0}."
 /// </summary>
 internal static Exception GetIDsOfNamesInvalid(object p0)
 {
     return(new ArgumentException(Strings.GetIDsOfNamesInvalid(p0)));
 }
예제 #4
0
 /// <summary>
 /// MissingMemberException with message like "Could not get dispatch ID for {0} (error: {1})."
 /// </summary>
 internal static Exception CouldNotGetDispId(object p0, object p1)
 {
     return(new MissingMemberException(Strings.CouldNotGetDispId(p0, p1)));
 }
예제 #5
0
 /// <summary>
 /// ArgumentException with message like "Could not convert argument {0} for call to {1}."
 /// </summary>
 internal static Exception DispTypeMismatch(object p0, object p1)
 {
     return(new ArgumentException(Strings.DispTypeMismatch(p0, p1)));
 }
예제 #6
0
 /// <summary>
 /// ArgumentException with message like "Error while invoking {0}. A required parameter was omitted."
 /// </summary>
 internal static Exception DispParamNotOptional(object p0)
 {
     return(new ArgumentException(Strings.DispParamNotOptional(p0)));
 }
예제 #7
0
 /// <summary>
 /// OverflowException with message like "Error while invoking {0}."
 /// </summary>
 internal static Exception DispOverflow(object p0)
 {
     return(new OverflowException(Strings.DispOverflow(p0)));
 }
예제 #8
0
 /// <summary>
 /// ArgumentException with message like "Error while invoking {0}. Named arguments are not supported."
 /// </summary>
 internal static Exception DispNoNamedArgs(object p0)
 {
     return(new ArgumentException(Strings.DispNoNamedArgs(p0)));
 }
예제 #9
0
 /// <summary>
 /// MissingMemberException with message like "Error while invoking {0}."
 /// </summary>
 internal static Exception DispMemberNotFound(object p0)
 {
     return(new MissingMemberException(Strings.DispMemberNotFound(p0)));
 }
예제 #10
0
 /// <summary>
 /// System.Reflection.TargetParameterCountException with message like "Error while invoking {0}."
 /// </summary>
 internal static Exception DispBadParamCount(object p0)
 {
     return(new System.Reflection.TargetParameterCountException(Strings.DispBadParamCount(p0)));
 }
예제 #11
0
 /// <summary>
 /// InvalidOperationException with message like "Unexpected VarEnum {0}."
 /// </summary>
 internal static Exception UnexpectedVarEnum(object p0)
 {
     return(new InvalidOperationException(Strings.UnexpectedVarEnum(p0)));
 }