1
|
/**
|
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
|
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
|
* @author m.doering
|
17
|
*
|
18
|
*/
|
19
|
public class CdmObjectNonExisting extends Exception {
|
20
|
public CdmObjectNonExisting(String uuid)
|
21
|
{
|
22
|
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
|
}
|
28
|
}
|