Bug 114542 [Markers] Possible to get empty path nodes in problems view hierarcahl mode
20051101 Warnings on the top level of a project ended up having an empty label. STEPS 1) Change filters to show selected elements and children 2) Go into hierarchal mode 3) Select org.eclipse.ui.tests
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/Util.java
* @return IStatus
	 */
	public static IStatus errorStatus(Throwable exception) {
		String message = exception.getLocalizedMessage();
		if(message == null)
			message = EMPTY_STRING;
		return new Status(IStatus.ERROR, IDEWorkbenchPlugin.IDE_WORKBENCH,
				IStatus.ERROR,message , exception);
	}
	private Util() {
		super();
	}
	/**
	 * Get the image for the severity if it can be identified.
	 * 
	 * @param severity
	 * @return Image or <code>null</code>
	 */
	public static Image getImage(int severity) {
		if (severity == IMarker.SEVERITY_ERROR) {
			return getIDEImage(IMAGE_ERROR_PATH);
		}
		if (severity == IMarker.SEVERITY_WARNING) {
			return getIDEImage(IMAGE_WARNING_PATH);
		}
		if (severity == IMarker.SEVERITY_INFO) {
			return getIDEImage(IMAGE_INFO_PATH);
		}
		return null;
	}