Spec-Zone.ru › Ruby 2.7

class Bundler::Molinillo::CircularDependencyError

Parent:
Bundler::Molinillo::ResolverError

Ошибка, возникшая при попытке удовлетворить циклическую зависимость

@note Данное исключение будет выброшено, если {Vertex} будет добавлен к

{DependencyGraph} that has a {DependencyGraph::Vertex#path_to?} an
existing {DependencyGraph::Vertex}

Атрибуты

dependencies[R]
Set<Object>

зависимости, вызвавшие ошибку

Публичные методы класса

new(vertices) Показать исходный код
# File lib/bundler/vendor/molinillo/lib/molinillo/errors.rb, line 47
def initialize(vertices)
  super "There is a circular dependency between #{vertices.map(&:name).join(' and ')}"
  @dependencies = vertices.map { |vertex| vertex.payload.possibilities.last }.to_set
end

Инициализирует новую ошибку с заданными циклическими вершинами. @param [Array<DependencyGraph::Vertex>] vertices вершины в зависимости

that caused the error
Вызывает метод родительского класса Exception::new

Ruby Core © 1993–2017 Yukihiro Matsumoto
Licensed under the Ruby License.
Ruby Standard Library © contributors
Licensed under their own licenses.

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API