blob: 479a6c133794d92d895303a712a444b464b9288b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
/*
* Copyright (c) 2015 Eike Stepper (Berlin, Germany) and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Esteban Dugueperoux - initial API and implementation
*/
package org.eclipse.emf.cdo.common.util;
import org.eclipse.emf.cdo.common.model.CDOClassifierRef;
import org.eclipse.emf.cdo.internal.common.messages.Messages;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EPackage.Registry;
import java.text.MessageFormat;
/**
* A {@link CDOException} to indicate that an {@link EClass} is not available for an {@link EPackage} in the current {@link Registry}.
*
* @author Esteban Dugueperoux
* @since 4.4
*/
public final class CDOClassNotFoundException extends CDOException
{
private static final long serialVersionUID = 1L;
private final String packageURI;
private final String classifierName;
public CDOClassNotFoundException(String packageURI, String classifierName)
{
super(MessageFormat.format(Messages.getString("CDOSessionImpl.1"),
packageURI + CDOClassifierRef.URI_SEPARATOR + classifierName));
this.packageURI = packageURI;
this.classifierName = classifierName;
}
public String getPackageURI()
{
return packageURI;
}
public String getClassifierName()
{
return classifierName;
}
}
|