class Cassowary::UnsatisfiableConstraint

Overview

Raised by Solver#add when a required constraint conflicts with the required constraints already in the solver.

The solver is left unchanged.

Defined in:

cassowary/errors.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(constraint : Constraint, conflicts : Array(Constraint) = [] of Constraint) #

[View source]

Instance Method Detail

def conflicts : Array(Constraint) #

Returns required constraints already in the solver that #constraint conflicts with. The set may hold more than needed; Solver#explain returns a minimal one.


[View source]
def constraint : Constraint #

[View source]