use different exception handler if transaction-type is local
Merge pull request #4165 from gurbuzali/local-transaction-throw-exception/maintenance

use different exception handler if transaction-type is local [maintenance]