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