diff options
Diffstat (limited to 'bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/provisional/env/core/uri/URIException.java')
-rw-r--r-- | bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/provisional/env/core/uri/URIException.java | 76 |
1 files changed, 0 insertions, 76 deletions
diff --git a/bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/provisional/env/core/uri/URIException.java b/bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/provisional/env/core/uri/URIException.java deleted file mode 100644 index feab1948c..000000000 --- a/bundles/org.eclipse.wst.command.env.core/src/org/eclipse/wst/command/internal/provisional/env/core/uri/URIException.java +++ /dev/null @@ -1,76 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.wst.command.internal.provisional.env.core.uri; - -import org.eclipse.core.runtime.IStatus; - -/** - * This is the base class for most exceptions thrown by URI classes. - * Every URIException carries a URI and a Status, each of which may - * be null. The getMessage() method as inherited from Exception will - * return the message from the URIExceptin's Status object, if any. - */ -public class URIException extends Exception -{ - /** - * Comment for <code>serialVersionUID</code> - */ - private static final long serialVersionUID = 3258130271424756018L; - - /** - * A Status object containing details about the exception, - * if applicable. - */ - protected IStatus status; - - /** - * The URI for which the exception occured, - * if applicable. - */ - protected URI uri; - - /** - * Creates a new URIException with the given Status. - * The status may be null. - */ - public URIException ( IStatus status ) - { - super(); - this.status = status; - } - - /** - * Creates a new URIException for the given Status and URI, - * each of which may be null. - */ - public URIException ( IStatus status, URI uri ) - { - super(status != null ? status.getMessage() : null); - this.status = status; - this.uri = uri; - } - - /** - * Returns the Status object inside this exception. - */ - public IStatus getStatus () - { - return status; - } - - /** - * Returns the URI inside this exception. - */ - public URI getURI () - { - return uri; - } -} |