home *** CD-ROM | disk | FTP | other *** search
- package com.sfs.awt.treeview;
-
- public class TreeViewException extends Exception {
- static final int UNKNOWN_FOLDER = 0;
- static final int UNKNOWN_ITEM = 1;
- static final int NAME_ALREADY_EXISTS = 2;
- static final int SEARCH_FAILED = 3;
- int errorId;
-
- TreeViewException(int var1) {
- this.errorId = var1;
- }
-
- public String getMessage() {
- switch (this.errorId) {
- case 0:
- return "The specified folder doesnt exist.";
- case 1:
- return "The specified item doesnt exist.";
- case 2:
- return "A folder or item with the specified name already exists";
- case 3:
- return "The given folderpath contains unknown folders.";
- default:
- return "An error occured in class TreeView.";
- }
- }
- }
-