rspec/rules/S1163/vbnet/rule.adoc

45 lines
759 B
Plaintext

== Why is this an issue?
include::../description.adoc[]
=== Noncompliant code example
[source,vbnet]
----
Try
' Some work which end up throwing an exception
Throw New ArgumentException()
Finally
' Clean up
Throw New InvalidOperationException() ' Noncompliant; will mask the ArgumentException
End Try
----
=== Compliant solution
[source,vbnet]
----
Try
' Some work which end up throwing an exception
Throw New ArgumentException()
Finally
' Clean up
End Try
----
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[]