set_exception_catch
Applicability
Product |
Supported |
|---|---|
√ |
|
√ |
|
x |
|
x |
|
x |
Function Description
Enables or disables the user exception catch function.
Prototype
1 | set_exception_catch(self, enable_exception_catch: bool = False) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
enable_exception_catch |
bool |
Whether to enable the user exception capture function. The values are as follows:
Default value: False |
Returns
None
Examples
1 2 3 | import dataflow as df graph = df.FlowGraph(...) graph.enable_exception_catch(True) |
Constraints
This function must be used together with the set_inputs_align_attrs API to enable the data alignment. Otherwise, a compilation error is reported.
Parent topic: dataflow.FlowGraph