/*
 * (c) Copyright IBM Corp. 2000, 2001.
 * All Rights Reserved.
 */
package net.sourceforge.phpdt.internal.ui;

import net.sourceforge.phpeclipse.PHPeclipsePlugin;

import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;

/**
 * Convenience class for error exceptions thrown inside PHPUI plugin.
 */
public class PHPUIStatus extends Status {

	public PHPUIStatus(int code, String message, Throwable throwable) {
		super(IStatus.ERROR, PHPeclipsePlugin.getPluginId(), code, message, throwable);
	}

	public PHPUIStatus(int code, String message) {
		this(code, message, null);
	}

	public PHPUIStatus(int code) {
		this(code, ""); //$NON-NLS-1$
	}
}