source: greenstone3/branches/customizingGreenstone3/src/java/org/greenstone/gsdl3/core/GSException.java@ 14713

Last change on this file since 14713 was 9874, checked in by kjdon, 19 years ago

merged from branch ant-install-branch: merge 1

  • Property svn:keywords set to Author Date Id Revision
File size: 1.4 KB
Line 
1/*
2 * GSException.java
3 * a new exception for Greenstone
4
5 * Copyright (C) 2005 New Zealand Digital Library, http://www.nzdl.org
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 */
21package org.greenstone.gsdl3.core;
22
23import org.greenstone.gsdl3.util.GSXML;
24
25public class GSException
26 extends Exception {
27
28 private String exception_type = null;
29 // need some better names for these
30 //public static int PERMANENT = 0;
31 //public static int TEMPORARY = 1;
32 //public static int OTHER = 2;
33
34 public GSException(String message) {
35
36 super(message);
37 this.exception_type = GSXML.ERROR_TYPE_OTHER;
38 }
39 public GSException(String message, String type) {
40
41 super(message);
42 this.exception_type = type;
43 }
44
45 public String getType() {
46 return exception_type;
47 }
48
49
50}
Note: See TracBrowser for help on using the repository browser.