/*******************************************************************************
* Copyright (c) 2008-2014 Chair for Applied Software Engineering,
* Technische Universitaet Muenchen.
* 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:
* Maximilian Koegel - initial API and implementation
******************************************************************************/
package org.eclipse.emf.emfstore.internal.client.model.exceptions;
import org.eclipse.emf.common.notify.Notification;
/**
* Represents exceptional condition where the used implementation (subclass) of {@link Notification} is unknown.
*
* @author koegel
*/
@SuppressWarnings("serial")
public class UnknownNotificationImplementationException extends Exception {
/**
* Constructor.
*
* @param notification the notification of which the type is unknown.
*/
public UnknownNotificationImplementationException(Notification notification) {
super(Messages.UnknownNotificationImplementationException_UnknownNotification +
notification.getClass().getCanonicalName());
}
/**
* Constructor.
*
* @param notification the notification of which the type is unknown.
* @param cause the underlying cause
*/
public UnknownNotificationImplementationException(Notification notification, Exception cause) {
super(Messages.UnknownNotificationImplementationException_UnknownNotification +
notification.getClass().getCanonicalName(), cause);
}
}