
Co-authored-by: Amélie Renard <44666826+amelie-renard-sonarsource@users.noreply.github.com> Co-authored-by: Dorian Burihabwa <75226315+dorian-burihabwa-sonarsource@users.noreply.github.com>
17 lines
170 B
Plaintext
17 lines
170 B
Plaintext
[source,swift]
|
|
----
|
|
try loadImage(imagePath)
|
|
----
|
|
|
|
or
|
|
|
|
[source,swift]
|
|
----
|
|
do {
|
|
try loadImage(imagePath)
|
|
} catch {
|
|
handleImageError(error)
|
|
throw error
|
|
}
|
|
----
|