"Locating error handler sequence : " + errorHandler);
}
// set exception information to message context
Axis2MessageContext.setErrorInformation(synCtx, e);
Mediator errHandler = synCtx.getConfiguration().getNamedSequence(errorHandler);
if (errHandler == null) {
if (shouldTrace) {
trace.trace("Sequence " + name + "; error handler sequence named '" +
errorHandler + "' not found");
}
handleException("Error handler sequence mediator instance named " +
errorHandler + " cannot be found");
} else {
if (shouldTrace) {
trace.trace("Sequence " + name + "; Executing error handler sequence : "
+ errorHandler);
}
return errHandler.mediate(synCtx);
}
} else {
if (shouldTrace) {
trace.trace("Sequence " + name + " encountered an exception, but does " +
"not specify an error handler");
}
throw e;
}
} finally {
if (shouldTrace) {
trace.trace("End : Sequence <" + (name == null ? "anonymous" : name) + ">");
}
}
} else {
Mediator m = synCtx.getConfiguration().getNamedSequence(ref);
if (m == null) {
if (shouldTrace) {
trace.trace("Sequence named " + ref + " cannot be found.");
}
handleException("Sequence named " + ref + " cannot be found.");
} else {
if (shouldTrace) {
trace.trace("Executing sequence named " + ref);
}
return m.mediate(synCtx);
}
}
return false;
}