1 |
203
|
jones
|
/**
|
2 |
|
|
* '$RCSfile$'
|
3 |
|
|
* Purpose: An Exception thrown when an error occurs because an
|
4 |
|
|
* AccessionNumber was invalid or used incorrectly
|
5 |
|
|
* Copyright: 2000 Regents of the University of California and the
|
6 |
|
|
* National Center for Ecological Analysis and Synthesis
|
7 |
|
|
* Authors: Matt Jones
|
8 |
349
|
jones
|
* Release: @release@
|
9 |
203
|
jones
|
*
|
10 |
|
|
* '$Author$'
|
11 |
|
|
* '$Date$'
|
12 |
|
|
* '$Revision$'
|
13 |
|
|
*/
|
14 |
|
|
|
15 |
|
|
package edu.ucsb.nceas.metacat;
|
16 |
|
|
|
17 |
|
|
/**
|
18 |
|
|
* Exception thrown when an error occurs because an AccessionNumber was
|
19 |
|
|
* invalid or used incorrectly.
|
20 |
|
|
*
|
21 |
|
|
* Accession numbers are invalid under the following conditions:
|
22 |
|
|
* 1) INSERT mode, and the provided accesion # doesn't contain "sep"
|
23 |
|
|
* 2) UPDATE mode, and no accession # provided
|
24 |
|
|
* 3) UPDATE mode, and accession # doesn't exist in xml_documents table
|
25 |
|
|
* 4) DELETE mode, and no accession # provided
|
26 |
|
|
* 5) DELETE mode, and accession # doesn't exist in xml_documents table
|
27 |
|
|
*/
|
28 |
|
|
public class AccessionNumberException extends Exception {
|
29 |
|
|
/**
|
30 |
|
|
* Create a new AccessionNumberException.
|
31 |
|
|
*
|
32 |
|
|
* @param message The error or warning message.
|
33 |
|
|
*/
|
34 |
|
|
public AccessionNumberException(String message) {
|
35 |
|
|
super(message);
|
36 |
|
|
}
|
37 |
|
|
}
|
38 |
|
|
|
39 |
|
|
/**
|
40 |
|
|
* '$Log$
|
41 |
349
|
jones
|
* 'Revision 1.2 2000/06/26 10:35:04 jones
|
42 |
|
|
* 'Merged in substantial changes to DBWriter and associated classes and to
|
43 |
|
|
* 'the MetaCatServlet in order to accomodate the new UPDATE and DELETE
|
44 |
|
|
* 'functions. The command line tools and the parameters for the
|
45 |
|
|
* 'servlet have changed substantially.
|
46 |
|
|
* '
|
47 |
203
|
jones
|
* 'Revision 1.1.2.1 2000/06/25 23:55:50 jones
|
48 |
|
|
* 'Added AccessionNumberException to provide mechanism for handling
|
49 |
|
|
* 'invalid or inappropriate accession numbers.
|
50 |
|
|
* ''
|
51 |
|
|
*/
|