ptolemy.data.properties
Class PropertyResolutionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by ptolemy.kernel.util.KernelException
              extended by ptolemy.kernel.util.IllegalActionException
                  extended by ptolemy.data.properties.PropertyResolutionException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
PropertyFailedRegressionTestException

public class PropertyResolutionException
extends IllegalActionException

Thrown when a property fails to resolve.

Since:
Ptolemy II 8.0
Version:
$Id: PropertyResolutionException.java 56250 2009-11-23 17:15:04Z cxh $
Author:
Man-kit (Jackie) Leung, Christopher Brooks
See Also:
Serialized Form
Accepted Rating:
Red (cxh)
Proposed Rating:
Yellow (cxh)

Field Summary
private  PropertySolverBase _solver
          The PropertySolver with which this exception was constructed.
 
Constructor Summary
PropertyResolutionException(PropertySolverBase solver, Nameable nameable, java.lang.String detail)
          Construct an exception that includes the PropertySolver that that was involved and the cause.
PropertyResolutionException(PropertySolverBase solver, Nameable nameable, java.lang.Throwable cause)
          Deprecated. Use PropertyResolutionException(PropertySolverBase, Nameable, Throwable, String) instead because exceptions should include information about why the exception was thrown instead of just rethrowing.
PropertyResolutionException(PropertySolverBase solver, Nameable nameable, java.lang.Throwable cause, java.lang.String detail)
          Construct an exception that includes the PropertySolver that that was involved, the Nameable and the cause.
PropertyResolutionException(PropertySolverBase solver, java.lang.String detail)
          Construct an exception that includes the PropertySolver that that was involved.
PropertyResolutionException(PropertySolverBase solver, java.lang.Throwable cause)
          Deprecated. Use PropertyResolutionException(PropertySolverBase, Throwable, String) instead because exceptions should include information about why the exception was thrown instead of just rethrowing.
PropertyResolutionException(PropertySolverBase solver, java.lang.Throwable cause, java.lang.String detail)
          Construct an exception that includes the PropertySolver that that was involved and the cause.
 
Method Summary
 PropertySolverBase getSolver()
          Return the PropertySolver 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
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_solver

private PropertySolverBase _solver
The PropertySolver with which this exception was constructed. Guaranteed to be non-null.

Constructor Detail

PropertyResolutionException

public PropertyResolutionException(PropertySolverBase solver,
                                   java.lang.String detail)
Construct an exception that includes the PropertySolver that that was involved.

Parameters:
solver - The PropertySolver, which must not be null.
detail - The message.

PropertyResolutionException

public PropertyResolutionException(PropertySolverBase solver,
                                   java.lang.Throwable cause)
Deprecated. Use PropertyResolutionException(PropertySolverBase, Throwable, String) instead because exceptions should include information about why the exception was thrown instead of just rethrowing.

Construct an exception that includes the PropertySolver that that was involved.

Parameters:
solver - The PropertySolver, which must not be null.
cause - The cause of this exception, or null if the cause is not known or nonexistent

PropertyResolutionException

public PropertyResolutionException(PropertySolverBase solver,
                                   java.lang.Throwable cause,
                                   java.lang.String detail)
Construct an exception that includes the PropertySolver that that was involved and the cause.

Parameters:
solver - The PropertySolver, which must not be null.
cause - The cause of this exception, or null if the cause is not known or nonexistent
detail - The message.

PropertyResolutionException

public PropertyResolutionException(PropertySolverBase solver,
                                   Nameable nameable,
                                   java.lang.String detail)
Construct an exception that includes the PropertySolver that that was involved and the cause.

Parameters:
solver - The PropertySolver, which must not be null.
nameable - The Nameable object that was involved.
detail - The message.

PropertyResolutionException

public PropertyResolutionException(PropertySolverBase solver,
                                   Nameable nameable,
                                   java.lang.Throwable cause)
Deprecated. Use PropertyResolutionException(PropertySolverBase, Nameable, Throwable, String) instead because exceptions should include information about why the exception was thrown instead of just rethrowing.

Construct an exception that includes the PropertySolver that that was involved and the cause.

Parameters:
solver - The PropertySolver, 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 nonexistent

PropertyResolutionException

public PropertyResolutionException(PropertySolverBase solver,
                                   Nameable nameable,
                                   java.lang.Throwable cause,
                                   java.lang.String detail)
Construct an exception that includes the PropertySolver that that was involved, the Nameable and the cause.

Parameters:
solver - The PropertySolver, 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 nonexistent
detail - The message.
Method Detail

getSolver

public PropertySolverBase getSolver()
Return the PropertySolver with which this exception was constructed.

Returns:
the solver with which this exception was constructed. Guaranteed to be non-null.