Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.9/dist-packages/kiwisolver/exceptions.py: 78%
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1# --------------------------------------------------------------------------------------
2# Copyright (c) 2023-2024, Nucleic Development Team.
3#
4# Distributed under the terms of the Modified BSD License.
5#
6# The full license is in the file LICENSE, distributed with this software.
7# --------------------------------------------------------------------------------------
8"""Kiwi exceptions.
10Imported by the kiwisolver C extension.
12"""
15class BadRequiredStrength(Exception):
16 pass
19class DuplicateConstraint(Exception):
20 __slots__ = ("constraint",)
22 def __init__(self, constraint):
23 self.constraint = constraint
26class DuplicateEditVariable(Exception):
27 __slots__ = ("edit_variable",)
29 def __init__(self, edit_variable):
30 self.edit_variable = edit_variable
33class UnknownConstraint(Exception):
34 __slots__ = ("constraint",)
36 def __init__(self, constraint):
37 self.constraint = constraint
40class UnknownEditVariable(Exception):
41 __slots__ = ("edit_variable",)
43 def __init__(self, edit_variable):
44 self.edit_variable = edit_variable
47class UnsatisfiableConstraint(Exception):
48 __slots__ = ("constraint",)
50 def __init__(self, constraint):
51 self.constraint = constraint