Newer Version Available
RTRReportResult.MockException
This class is used to create mock exceptions for the unit test execution.
Namespace
The RTRReportResult.MockException class extends Exception.
The supported modifier is global.
Supported Methods
| Method signature | Description | Version |
|---|---|---|
| RTRReportResult.MockException(String message) | The constructor for creating mock exceptions for the unit test execution.
message: String. The message to return as part of the exception. |
60.0 |
Example Implementation
To unit test error handling scenarios, set up a mock exception to be thrown during execution.