001/*
002 * This file is part of OCaml-Java runtime.
003 * Copyright (C) 2007-2013 Xavier Clerc.
004 *
005 * OCaml-Java runtime is free software; you can redistribute it and/or modify
006 * it under the terms of the GNU Lesser General Public License as published by
007 * the Free Software Foundation; either version 3 of the License, or
008 * (at your option) any later version.
009 *
010 * OCaml-Java runtime is distributed in the hope that it will be useful,
011 * but WITHOUT ANY WARRANTY; without even the implied warranty of
012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
013 * GNU Lesser General Public License for more details.
014 *
015 * You should have received a copy of the GNU Lesser General Public License
016 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
017 */
018
019package org.ocamljava.runtime.wrappers;
020
021import org.ocamljava.runtime.kernel.FailException; import org.ocamljava.runtime.kernel.Fail;
022
023/**
024 * The {@code OCamlNotFoundException} class is the Java counterpart of
025 * the {@code Not_found} OCaml exception.
026 *
027 * @author <a href="mailto:xclerc@ocamljava.org">Xavier Clerc</a>
028 * @version 2.0
029 * @since 2.0
030 */
031public final class OCamlNotFoundException extends OCamlException {
032
033    /** Serialization UID. */
034    static final long serialVersionUID = -2086457597480641049L;
035
036    /**
037     * Constructs a new instance.
038     */
039    public OCamlNotFoundException() {
040        super(Fail.createWithConstant(OCamlException.getTag("Not_found")));
041    } // end empty constructor
042
043    /**
044     * Constructs a new instance based on the passed exception.
045     * @param fe original OCaml exception - should not be {@code null}
046     */
047    public OCamlNotFoundException(final FailException fe) {
048        super(fe);
049    } // end constructor(FailException)
050
051} // end class 'OCamlNotFoundException'