error(type, fmt /*, ...*/) {
			try {
				LuCI.prototype.raise.apply(LuCI.prototype,
					Array.prototype.slice.call(arguments));
			}
			catch (e) {
				if (!e.reported) {
					if (classes.ui)
						classes.ui.addNotification(e.name || _('Runtime error'),
							E('pre', {}, e.message), 'danger');
					else
						DOM.content(document.querySelector('#maincontent'),
							E('pre', { 'class': 'alert-message error' }, e.message));

					e.reported = true;
				}

				throw e;
			}
		}
A wrapper around {@link LuCI#raise raise()} which also renders
the error either as modal overlay when `ui.js` is already loaded
or directly into the view body.

@instance
@memberof LuCI

@param {Error|string} [type=Error]
Either a string specifying the type of the error to throw or an
existing `Error` instance to copy.

@param {string} [fmt=Unspecified error]
A format string which is used to form the error message, together
with all subsequent optional arguments.

@param {...*} [args]
Zero or more variable arguments to the supplied format string.

@throws {Error}
Throws the created error object with the captured stack trace
appended to the message and the type set to the given type
argument or copied from the given error instance.