Newer Version Available

This content describes an older version of this product. View Latest

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

Table 1. RTRReportResult.MockException 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.