rspec/rules/S3717/rule.adoc

20 lines
625 B
Plaintext
Raw Normal View History

2020-12-23 14:59:06 +01:00
``NotImplementedException`` is often used to mark methods which must be implemented for the overall functionality to be complete, but which the developer wants to implement later. That's as opposed to the ``NotSupportedException`` which is thrown by methods which are required by base classes or interfaces, but which are not appropriate to the current class.
2020-06-30 12:48:39 +02:00
2020-12-23 14:59:06 +01:00
This rule raises an exception when ``NotImplementedException`` is thrown.
2020-06-30 12:48:39 +02:00
== Noncompliant Code Example
----
void doTheThing()
{
throw new NotImplementedException();
}
----
== Exceptions
2020-12-23 14:59:06 +01:00
Exceptions derived from ``NotImplementedException`` are ignored.
2020-06-30 12:48:39 +02:00