Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Allow Java devices to customize action errors
08-08-2012, 01:09 PM
Post: #7
RE: Allow Java devices to customize action errors
(08-08-2012 01:07 PM)simoncn Wrote:  Thanks for applying these changes.

Unforunately they haven't quite been applied correctly. The change to DvUpnpJava.tt has ben applied as
Code:
invocation.reportActionError(ae, "Invalid XML");
instead of
Code:
invocation.reportActionError(ae, "<#=a.name#>");

The second argument to reportActionError() should be the name of the action. It's used by reportActionError() to produce a default message "Action xxxx failed".

If you look at the equivalent code in the C# bindings, you'll see that it does the same thing.

Oops, well spotted. On closer inspection, the C# code is wrong too. I'll fix both later today.
Find all posts by this user


Messages In This Thread
RE: Allow Java devices to customize action errors - simonc - 08-08-2012 01:09 PM

Forum Jump: