org.qedeq.kernel.xml.mapper.LocationNotFoundException Maven / Gradle / Ivy
/* This file is part of the project "Hilbert II" - http://www.qedeq.org
*
* Copyright 2000-2013, Michael Meyling .
*
* "Hilbert II" is free software; you can redistribute
* it and/or modify it under the terms of the GNU General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
package org.qedeq.kernel.xml.mapper;
import org.qedeq.kernel.se.common.ModuleContext;
import org.qedeq.kernel.se.common.ModuleDataException;
/**
* Thrown if the location was not found.
*
* @author Michael Meyling
*/
public class LocationNotFoundException extends ModuleDataException {
/**
* Constructs an exception.
*
* @param context Context we currently are.
* @param matching Last matching begin of search context.
* @param find Context that was searched for.
*/
public LocationNotFoundException(final ModuleContext context, final String matching,
final String find) {
super(50001, "location was not found within module " + context.getModuleLocation()
+ "\n current context: " + context.getLocationWithinModule()
+ "\n last match: " + matching
+ "\n searched for: " + find, context);
}
}