docs: def _handle_error(self, data, params):
          """Handle an error response from the SABnzbd API"""
          error = data.get('error', 'API call failed')
          mode = params.get('mode')
          raise SabnzbdApiException(error, mode=mode)