rspec/rules/S2737/swift/rule.adoc

43 lines
571 B
Plaintext
Raw Normal View History

2020-06-30 12:48:07 +02:00
include::../description.adoc[]
== Noncompliant Code Example
----
do {
try loadImage(imagePath)
} catch { // Noncompliant
throw error
}
----
== Compliant Solution
----
do {
try loadImage(imagePath)
} catch {
handleImageError(error)
throw error
}
----
or
2020-06-30 12:48:07 +02:00
----
try loadImage(imagePath)
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::../message.adoc[]
'''
== Comments And Links
(visible only on this page)
include::../comments-and-links.adoc[]
endif::env-github,rspecator-view[]