I would add this check in the risklib. Then I would re-raise the exception in the engine by logging it at ERROR level.