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

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