private static Exception SendCompletedEventArgsGetError (IntPtr calldata) { try { NativeMethods.send_completed_event_args_get_error (calldata); return null; } catch (Exception e) { return e; } }