1 |
19618e37
|
Andreas Kohlbecker
|
/**
|
2 |
|
|
* Copyright (C) 2007 EDIT
|
3 |
|
|
* European Distributed Institute of Taxonomy
|
4 |
|
|
* http://www.e-taxonomy.eu
|
5 |
|
|
*
|
6 |
|
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
7 |
|
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
8 |
|
|
*/
|
9 |
6960ca08
|
m.doering
|
package eu.etaxonomy.cdm.remote.service;
|
10 |
|
|
|
11 |
|
|
import java.util.UUID;
|
12 |
|
|
|
13 |
|
|
/**
|
14 |
|
|
* Exception for cases when a CDM object identified by its UUID is not existing
|
15 |
|
|
* or the UUID is malformed and not even a valid UUID
|
16 |
1aa63b5e
|
m.doering
|
* @author m.doering
|
17 |
6960ca08
|
m.doering
|
*
|
18 |
|
|
*/
|
19 |
|
|
public class CdmObjectNonExisting extends Exception {
|
20 |
bb379ef9
|
m.doering
|
public CdmObjectNonExisting(String uuid)
|
21 |
6960ca08
|
m.doering
|
{
|
22 |
bb379ef9
|
m.doering
|
super("CDM object not existing: "+uuid);
|
23 |
|
|
}
|
24 |
|
|
public CdmObjectNonExisting(String uuid, Class clas)
|
25 |
|
|
{
|
26 |
|
|
super("CDM object of class "+ clas.getSimpleName() +" not existing: "+uuid);
|
27 |
6960ca08
|
m.doering
|
}
|
28 |
|
|
}
|