Project

General

Profile

Download (951 Bytes) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2014 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

    
10
package eu.etaxonomy.cdm.config;
11

    
12
/**
13
 * Exception class which wraps around exceptions related to
14
 * Cdm Source functionality
15
 *
16
 * @author cmathew
17
 *
18
 */
19
public class CdmSourceException extends Exception {
20

    
21
	private static final long serialVersionUID = -4665522033493039582L;
22

    
23
	private final String sourceName;
24

    
25
	/**
26
	 * Constructor which simply uses the error message
27
	 *
28
	 * @param message , representing the error
29
	 */
30
	public CdmSourceException(String message) {
31
	    this(null, message);
32
	}
33

    
34
	public CdmSourceException(String sourceName, String message) {
35
		super(message);
36
		this.sourceName = sourceName;
37
	}
38

    
39
    public String getSourceName() {
40
        return sourceName;
41
    }
42

    
43
}
(7-7/11)