Project

Profile

Help

Recoverable Errors in .NET

Added by Anonymous almost 11 years ago

Hello

I'm working with Saxon 9.5 in C# and have encountered a problem concerning error-handling:

While it is no problem to catch "fatal" errors (using myXsltCompiler.ErrorList and try/catch, I have found no way to hande recoverable errors, such as

FODC0002: Exception thrown by URIResolver: The file "path/to/some/file.xml" could not be found.

Saxon automatically writes this to the console, is there any way to handle these errors (and put the into a textbox, log-file, etc...)?

I've tried myXsltTransformer.RecoveryPolicy=RecoveryPolicy.DoNotRecover, but the only thing it did, was to throw a generic error without any information where it occured: Exception thrown by URIResolver (FODC0002), while it still writes an exact descrition on the console.

Is there any feature I haven't found yet, to tackle this problem?


Please register to reply