001/* Exception thrown on an attempt to evaluate an expression that can not be
002 determined because some variables are unknown.
003
004 Copyright (c) 1997-2014 The Regents of the University of California.
005 All rights reserved.
006 Permission is hereby granted, without written agreement and without
007 license or royalty fees, to use, copy, modify, and distribute this
008 software and its documentation for any purpose, provided that the above
009 copyright notice and the following two paragraphs appear in all copies
010 of this software.
011
012 IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY
013 FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
014 ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF
015 THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF
016 SUCH DAMAGE.
017
018 THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
019 INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
020 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE
021 PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND THE UNIVERSITY OF
022 CALIFORNIA HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES,
023 ENHANCEMENTS, OR MODIFICATIONS.
024
025 PT_COPYRIGHT_VERSION_2
026 COPYRIGHTENDKEY
027
028 */
029package ptolemy.data.expr;
030
031import ptolemy.kernel.util.KernelRuntimeException;
032import ptolemy.kernel.util.Nameable;
033
034//////////////////////////////////////////////////////////////////////////
035//// UnknownResultException
036
037/**
038 Thrown on an attempt to evaluate an expression that can not be determined
039 because some variables are unknown.
040
041 @author Paul Whitaker
042 @version $Id$
043 @since Ptolemy II 2.0
044 @Pt.ProposedRating Red (pwhitake)
045 @Pt.AcceptedRating Red (pwhitake)
046 */
047@SuppressWarnings("serial")
048public class UnknownResultException extends KernelRuntimeException {
049    /** Constructs an Exception with a detail message.
050     *  @param detail The message.
051     */
052    public UnknownResultException(String detail) {
053        this(null, detail);
054    }
055
056    /** Constructs an Exception with a detail message that is only the
057     *  name of the argument.
058     *  @param obj The object.
059     */
060    public UnknownResultException(Nameable obj) {
061        this(obj, null);
062    }
063
064    /** Constructs an Exception with a detail message that includes the
065     *  name of the first argument.
066     *  @param obj The object.
067     *  @param detail The message.
068     */
069    public UnknownResultException(Nameable obj, String detail) {
070        super(obj, detail);
071    }
072}