Skip to content

Commit ba3389e

Browse files
Improve trace error for After/Before Connect/Commit/Rollback methods. (#820)
1 parent 8226615 commit ba3389e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

dotnet/src/dotnetframework/GxClasses/Helpers/GXMetadata.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,14 @@ static public void ExecuteVoidRef(object o, string mthd, Object[] args)
269269
pm[2] = pi.ParameterType.IsByRef;
270270
pms[i] = pm;
271271
}
272-
o.GetType().InvokeMember(mthd, BindingFlags.InvokeMethod, null, o, args, pms, null, null);
272+
try
273+
{
274+
o.GetType().InvokeMember(mthd, BindingFlags.InvokeMethod, null, o, args, pms, null, null);
275+
276+
}catch(MissingMethodException)
277+
{
278+
throw new GxClassLoaderException("Method " + mi.DeclaringType.FullName + "." + mi.Name + " for " + args.Length + " parameters ("+ String.Join(",", args) + ") not found");
279+
}
273280
}
274281
else
275282
{

0 commit comments

Comments
 (0)