RDT00007: Expected error is not a run-time error's code
Severity: Warning · Family: RDT (RDCore.UnitTesting) · Raised by: ExpectedErrorAnalyzer
The argument of '@ExpectedError is written as a diagnostic code, and it is not the code of a run-time error.
'@ExpectedError takes the code of a run-time error, VBR and five digits, whose digits are the error's number: VBR00013 is error 13, Type mismatch. It also takes the error's number, as a number (13) or a constant expression (vbObjectError + 513). A name such as VBC00013, RDC00101 or VBR13 is written as a code, and is not a run-time error's.
It is reported at the argument.
How it is raised
| Situation | Example | Resolution |
|---|---|---|
| A compile error's code. | '@ExpectedError VBC00013. |
Name the run-time error: '@ExpectedError VBR00013. |
| A run-time error's code without its five digits. | '@ExpectedError VBR13. |
Write the five digits: '@ExpectedError VBR00013, or the number: '@ExpectedError 13. |
See also
- RDT00006: Expected error not on a test