File: exceptions.py

package info (click to toggle)
python-booleanoperations 0.9.0-4
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 684 kB
  • sloc: python: 1,249; makefile: 5
file content (26 lines) | stat: -rw-r--r-- 746 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
class BooleanOperationsError(Exception):
    """Base BooleanOperations exception"""


class UnsupportedContourError(BooleanOperationsError):
    """Raised when asked to perform an operation on an unsupported curve type."""


class InvalidContourError(BooleanOperationsError):
    """Raised when any input contour is invalid"""


class InvalidSubjectContourError(InvalidContourError):
    """Raised when a 'subject' contour is not valid"""


class InvalidClippingContourError(InvalidContourError):
    """Raised when a 'clipping' contour is not valid"""


class OpenContourError(BooleanOperationsError):
    """Raised when any input contour is open"""


class ExecutionError(BooleanOperationsError):
    """Raised when clipping execution fails"""