funtracks.exceptions
InvalidActionError
InvalidActionError(message: str, forceable: bool = False)
Bases: RuntimeError
Raised when attempting an action that by itself is invalid, but that can optionally be forced by removing conflicting edges.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
message
|
str
|
The error message. |
required |
forceable
|
bool
|
Whether the action can be forced. Defaults to False. |
False
|