[merp] Add an exception type for managed exceptions (#18721)