001    /**
002     * OntoBride library
003     * Departamento de Ingeniería del Software e Inteligencia Artificial
004     * Universidad Complutense de Madrid
005     * 
006     * Licensed under the terms of the GNU Library or Lesser General Public License (LGPL)
007     *
008     * @author Juan A. Recio García
009     * 
010     * This software is a subproject of the jCOLIBRI framework
011     * http://sourceforge.net/projects/jcolibri-cbr/
012     * http://gaia.fdi.ucm.es/projects/jcolibri/
013     * 
014     * File: NoLocalFileException.java
015     * 22/11/2006
016     */
017    package es.ucm.fdi.gaia.ontobridge.exceptions;
018    
019    /**
020     * Exception used when system cannot find an ontology
021     * @author Juan A. Recio Garcia
022     */
023    public class NoLocalFileException extends OntoBridgeException {
024            private static final long serialVersionUID = 1L;
025            
026            private String _localfile;
027            
028            public NoLocalFileException(String localfile)
029            {
030                    _localfile = localfile;
031            }
032            
033            public String getMessage()
034            {
035                    return "An ontology must be publised in a web server. If not, you can use a local copy of the ontology but in this case that copy cannot be found:\n"+_localfile+"\nBe sure you have initializated propertly the OntologyFile object\n";
036            }
037    }