Convert API exceptions to remote ones.