pub fn ErrorLoopDetected<T>(err: T) -> Error where T: Debug + Display + 'static,
Helper function that wraps any error and generates a LOOP_DETECTED response.
LOOP_DETECTED