Package ptolemy.data.ontologies
Class OntologyResolutionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- ptolemy.kernel.util.KernelException
-
- ptolemy.kernel.util.IllegalActionException
-
- ptolemy.data.ontologies.OntologyResolutionException
-
- All Implemented Interfaces:
java.io.Serializable
public class OntologyResolutionException extends IllegalActionException
Thrown when an ontology solver fails to resolve correctly.- Since:
- Ptolemy II 10.0
- Version:
- $Id$
- Author:
- Man-kit (Jackie) Leung, Christopher Brooks
- See Also:
- Serialized Form
- Pt.AcceptedRating:
- Red (cxh)
- Pt.ProposedRating:
- Yellow (cxh)
-
-
Constructor Summary
Constructors Constructor Description OntologyResolutionException(OntologySolverBase solver, java.lang.String detail)
Construct an exception that includes the OntologySolver that was involved.OntologyResolutionException(OntologySolverBase solver, Nameable nameable, java.lang.String detail)
Construct an exception that includes the OntologySolver that was involved and the cause.OntologyResolutionException(OntologySolverBase solver, Nameable nameable, java.lang.Throwable cause, java.lang.String detail)
Construct an exception that includes the OntologySolver that was involved, the Nameable and the cause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OntologySolverBase
getSolver()
Return the OntologySolver with which this exception was constructed.-
Methods inherited from class ptolemy.kernel.util.KernelException
_setCause, _setMessage, generateMessage, generateMessage, generateMessage, getCause, getFullName, getMessage, getName, getNameable1, getNameable2, printStackTrace, printStackTrace, printStackTrace, stackTraceToString
-
-
-
-
Constructor Detail
-
OntologyResolutionException
public OntologyResolutionException(OntologySolverBase solver, java.lang.String detail)
Construct an exception that includes the OntologySolver that was involved.- Parameters:
solver
- The OntologySolver, which must not be null.detail
- The message.
-
OntologyResolutionException
public OntologyResolutionException(OntologySolverBase solver, Nameable nameable, java.lang.String detail)
Construct an exception that includes the OntologySolver that was involved and the cause.- Parameters:
solver
- The OntologySolver, which must not be null.nameable
- The Nameable object that was involved.detail
- The message.
-
OntologyResolutionException
public OntologyResolutionException(OntologySolverBase solver, Nameable nameable, java.lang.Throwable cause, java.lang.String detail)
Construct an exception that includes the OntologySolver that was involved, the Nameable and the cause.- Parameters:
solver
- The OntologySolver, which must not be null.nameable
- The Nameable object that was involved.cause
- The cause of this exception, or null if the cause is not known or nonexistentdetail
- The message.
-
-
Method Detail
-
getSolver
public OntologySolverBase getSolver()
Return the OntologySolver with which this exception was constructed.- Returns:
- the solver with which this exception was constructed. Guaranteed to be non-null.
-
-