typedef RequestOnError = void Function(String requestId, String userId, TUIError error, String message);