ESBCOMP-59 Catch TransformerException to throw SubLanguageExecutionFault

master
David BRASSELY 2013-08-27 13:32:13 +02:00
parent afe19d7058
commit 4534edaa57
1 changed files with 4 additions and 1 deletions

View File

@ -104,7 +104,10 @@ public class DoXslTransformFunction implements Function {
catch (StandardException e) {
// if it is StandardException propagate it
throw e;
}
}
catch (TransformerException e) {
throw new StandardException(StandardException.Fault.SubLanguageExecutionFault);
}
catch (Exception e) {
// Convert to a runtime exception and propagate it. It will treated
// as a system exception.