KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > openide > filesystems > EnvironmentNotSupportedException


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19
20 package org.openide.filesystems;
21
22 import java.io.IOException JavaDoc;
23
24 /** Exception thrown to signal that external
25 * execution and compilation is not supported on a given filesystem.
26 *
27 * @author Jaroslav Tulach
28 * @deprecated Please use the <a HREF="@org-netbeans-api-java@/org/netbeans/api/java/classpath/ClassPath.html">ClassPath API</a> instead.
29 */

30 @Deprecated JavaDoc
31 public class EnvironmentNotSupportedException extends IOException JavaDoc {
32     /** generated Serialized Version UID */
33     static final long serialVersionUID = -1138390681913514558L;
34
35     /** the throwing exception */
36     private FileSystem fs;
37
38     /**
39     * @param fs filesystem that caused the error
40     */

41     public EnvironmentNotSupportedException(FileSystem fs) {
42         this.fs = fs;
43         assert FileUtil.assertDeprecatedMethod();
44     }
45
46     /**
47     * @param fs filesystem that caused the error
48     * @param reason text description for the error
49     */

50     public EnvironmentNotSupportedException(FileSystem fs, String JavaDoc reason) {
51         super(reason);
52         this.fs = fs;
53         assert FileUtil.assertDeprecatedMethod();
54     }
55
56     /** Getter for the filesystem that does not support environment operations.
57     */

58     public FileSystem getFileSystem() {
59         return fs;
60     }
61 }
62
Popular Tags