Может, что-то типа этого?
X++:
[ExtensionOf(classStr(SalesTaxDeclarationInformationReportService))]
final class SalesTaxDeclarationInformationReportServiceNNN_Extension // <-- new extension
{
public void run(SalesTaxDeclarationInfoReportContract _dataContract)
{
try
{
throw Exception::Numeric;
next run(_dataContract);
}
catch (Exception::Numeric)
{
dataContract = _dataContract;
this.processReport();
this.nnnRunER(); // <- new method
}
}
private void nnnRunER()
{
// ...
}
}