Reason class
A reason explains why a specific action cannot be performed.
This is a parent class aiming at being implemented by specific subclasses.
Because Taipy applications are natively multiuser, asynchronous, and dynamic,
some functions might not be called in some specific contexts. You can protect
such calls by calling other methods that return a Reasons object. It acts like a
boolean: True if the operation can be performed and False otherwise.
If the action cannot be performed, the Reasons object holds all the reasons as a list
of
Reasonobjects. Each
Reason` holds an explanation of why the operation cannot be
performed.
Attributes:
Name | Type | Description |
---|---|---|
reason |
str
|
The English representation of the reason why the action cannot be performed. |