Convert libwebrtc error types to DOM exceptions