We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b40a8db commit 1d9611fCopy full SHA for 1d9611f
1 file changed
docs/release_notes/ibexa_dxp_v5.0.md
@@ -128,7 +128,20 @@ You can use it for migrations that might fail under certain conditions but shoul
128
For example, you can create languages without checking if they already exist:
129
130
``` yaml
131
-[[= include_file('code_samples/data_migration/examples/try_catch_step.yaml') =]]
+-
132
+ type: try_catch
133
+ mode: execute
134
+ allowed_exceptions:
135
+ - Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException
136
+ stop_after_first_exception: true
137
+ steps:
138
+ -
139
+ type: language
140
+ mode: create
141
+ metadata:
142
+ languageCode: ger-DE
143
+ name: German
144
+ enabled: true
145
```
146
147
The `try_catch` step allows you to specify which exceptions to catch and whether to continue executing remaining steps after an exception occurs.
0 commit comments