setApiException method

void setApiException(
  1. String apiName,
  2. Exception error
)

Implementation

void setApiException(String apiName, Exception error) {
  _forcedExceptions[apiName] = error;
}