Writes an error to the log and throws an exception if expectedArray fails the Prototype isArray method. Returns String containing the error message written to the log.
| Parameter | Type | Description |
|---|---|---|
| expectedArray | Object | Object to be checked to be an array. |
| message | String | Custom message to use if the assertion fails. Message will be run through template evaluation against messageProperties so you can include details of the assertion failure in the message. |
| messageProperties | Object | Object containing values to use with template evaluation. |
Example usage:
var names = this.testConstructorFunction[arrayName];
if (names !== undefined) {
Mojo.requireArray(names, "testConstructorFunction." + arrayName +
" must be undefined or an array.");
this.functionsToRun = $A(names);
return;
}







0 Comments