Skip to content

Commit 1d9611f

Browse files
committed
Added YAML file
1 parent b40a8db commit 1d9611f

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

docs/release_notes/ibexa_dxp_v5.0.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,20 @@ You can use it for migrations that might fail under certain conditions but shoul
128128
For example, you can create languages without checking if they already exist:
129129

130130
``` yaml
131-
[[= include_file('code_samples/data_migration/examples/try_catch_step.yaml') =]]
131+
-
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
132145
```
133146
134147
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

Comments
 (0)