rspec/rules/S2372/rule.adoc

35 lines
555 B
Plaintext
Raw Permalink Normal View History

== Why is this an issue?
2020-06-30 12:48:07 +02:00
include::description.adoc[]
=== Noncompliant code example
[source,text]
----
Module Module1
Public Property Foo() As Integer
Get
Throw New Exception ' Non-Compliant
End Get
Set(ByVal value As Integer)
' ... some code ...
End Set
End Property
End Module
----
=== Compliant solution
[source,text]
----
Module Module1
Sub SetFoo(ByVal value As Integer) ' Compliant
' ... some code ...
End Sub
End Module
----
2020-06-30 12:48:07 +02:00
include::exceptions.adoc[]