public static void Check(bool condition, CreateEntityManagerError queryBuilderError) { if (condition != true) { throw new CreateEntityManagerException(queryBuilderError); } }
public CreateEntityManagerException(CreateEntityManagerError createEntityManagerError) : base($"Fail to create EntityManager. {nameof(CreateEntityManagerError)} : {createEntityManagerError}") { CreateEntityManagerError = createEntityManagerError; }