function createInvalidInterfaceError(message, ui) {
    var err = new Error(message);
    err.code = constants$4.INVALID_INTERFACE;
    err.interface = ui;
    return err;
  }
Creates an error object to be thrown when the interface specified in the options was not found.

@public
@static
@param {string} message - Error message to be displayed.
@param {string} ui - User-specified interface value.
@returns {Error} instance detailing the error condition