bundles/org.eclipse.orion.client.ui/web/orion/status.js
function(st) {
			this._clickToDisMiss = true;
			this.statusMessage = st;
			this._init();
			//could be: responseText from xhrGet, deferred error object, or plain string
			var _status = st.responseText || st.message || st;
			//accept either a string or a JSON representation of an IStatus
			if (typeof _status === "string") {
				try {
					_status = JSON.parse(_status);
				} catch(error) {
					//it is not JSON, just continue;
				}
			}
			var message = _status.DetailedMessage || _status.Message || _status;
			var color = "#DF0000"; //$NON-NLS-0$
			if (_status.Severity) {
				switch (_status.Severity) {
				case SEV_WARNING:
					color = "#FFCC00"; //$NON-NLS-0$
					break;
				case SEV_ERROR:
					color = "#DF0000"; //$NON-NLS-0$
					break;
				case SEV_INFO:
				case SEV_OK:
					color = "green"; //$NON-NLS-0$
					break;
				}
			}
			var span = document.createElement("span");
			span.style.color = color;
			span.appendChild(document.createTextNode(message));
			var node = lib.node(this.domId);
			lib.empty(node);
			node.appendChild(span);
			this._takeDownSplash();
		}
function(st) {
			this._clickToDisMiss = true;
			this.statusMessage = st;
			this._init();
			//could be: responseText from xhrGet, deferred error object, or plain string
			var _status = st.responseText || st.message || st;
			//accept either a string or a JSON representation of an IStatus
			if (typeof _status === "string") {
				try {
					_status = JSON.parse(_status);
				} catch(error) {
					//it is not JSON, just continue;
				}
			}
			var message = _status.DetailedMessage || _status.Message || _status;
			var color = "#DF0000"; //$NON-NLS-0$
			if (_status.Severity) {
				switch (_status.Severity) {
				case SEV_WARNING:
					color = "#FFCC00"; //$NON-NLS-0$
					break;
				case SEV_ERROR:
					color = "#DF0000"; //$NON-NLS-0$
					break;
				case SEV_INFO:
				case SEV_OK:
					color = "green"; //$NON-NLS-0$
					break;
				}
			}
			var span = document.createElement("span");
			span.style.color = color;
			span.appendChild(document.createTextNode(message));
			var node = lib.node(this.domId);
			lib.empty(node);
			node.appendChild(span);
			this._takeDownSplash();
		}
function ( st ) { this . _clickToDisMiss = true ; this . statusMessage = st ; this . _init ( ) ; //could be: responseText from xhrGet, deferred error object, or plain string
 var _status = st . responseText || st . message || st ; //accept either a string or a JSON representation of an IStatus
 if ( typeof _status === "string" ) { try { _status = JSON . parse ( _status ) ; } catch ( error ) { //it is not JSON, just continue;
 } } var message = _status . DetailedMessage || _status . Message || _status ; var color = "#DF0000" ; //$NON-NLS-0$
 if ( _status . Severity ) { switch ( _status . Severity ) { case SEV_WARNING : color = "#FFCC00" ; //$NON-NLS-0$
 break ; case SEV_ERROR : color = "#DF0000" ; //$NON-NLS-0$
 break ; case SEV_INFO : case SEV_OK : color = "green" ; //$NON-NLS-0$
 break ; } } var span = document . createElement ( "span" ) ; span . style . color = color ; span . appendChild ( document . createTextNode ( message ) ) ; var node = lib . node ( this . domId ) ; lib . empty ( node ) ; node . appendChild ( span ) ; this . _takeDownSplash ( ) ; }
Displays an error message to the user.

@param {String|orionError} st The error to display. Can be a simple String,
or an error object from a  XHR error callback, or the body of an error response
from the Orion server.
Displays an error message to the user .