[Xml-compile] XML::Compile::Translate 1.35 - Log::Report?
Patrick Powell
papowell at astart.com
Mon Sep 2 16:10:39 GMT 2013
Problem 1:
The 'topLevel($$) routine has an error message:
or error __x(( $fullname eq $path
# original ? N__"cannot find element or attribute `{name}'"
# original : N__"cannot find element or attribute `{name}' at
{where}"
? "cannot find element or attribute `{name}'"
: "cannot find element or attribute `{name}' at
{where}"
), name => $fullname, where => $path, _class =>
'usage');
If the orginal lines are left in, you get the following error message
ERROR ERROR try-block stopped with ERROR: error: cannot find element or
attribute `errorReportMsg'
If you replace them by the indicated ones, you get:
ERROR ERROR try-block stopped with ERROR: error: cannot find element or
attribute `errorReportMsg'
Problem 2:
This is perl 5, version 14, subversion 4 (v5.14.4)
The call to the topLevel() routine is done using:
#eval {
($answer, $trace) = $call->(%$params);
#};
print "ProcessRequest: REQUEST '$request' ERROR '$@'\n"
The exception is not caught and the program exits. If you use the
'eval' then
you get:
ProcessRequest: REQUEST 'GetFaultRequest' ERROR ''
Apparently the Exception is not being propagated inside the eval. This
was a problem before in a
much older version of Log::Report.
More information about the Xml-compile
mailing list