ovm.polyd
Class PolicyException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by ovm.polyd.PolyDException
                  extended by ovm.polyd.PolicyException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
MultiDisp.MultiDispException, NonSubsump.NonSubsumpException

public class PolicyException
extends PolyDException

This exception should be thrown by the policy if an inconsistent set of methods is detected (duplicate methods, for instance, or ambiguities).

This exception should not be thrown when the policy finds at runtime that a message has no corresponding method: see MissingMethodException for the appropriate action. This exception is instead the appropriate response when an ambiguity or a similar inconsistency is detected, either statically or dynamically.

See Also:
MissingMethodException, Serialized Form

Constructor Summary
PolicyException()
          Constructs a new exception with null as its detail message.
PolicyException(java.lang.String message)
          Constructs a new exception with the specified detail message.
PolicyException(java.lang.String message, java.lang.Throwable cause)
          Constructs a new exception with the specified detail message and cause.
PolicyException(java.lang.Throwable cause)
          Constructs a new exception with the specified cause and a detail message of (cause==null ? null : cause.toString()).
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PolicyException

public PolicyException(java.lang.String message)
Constructs a new exception with the specified detail message.

Parameters:
message - the detail message

PolicyException

public PolicyException()
Constructs a new exception with null as its detail message.


PolicyException

public PolicyException(java.lang.Throwable cause)
Constructs a new exception with the specified cause and a detail message of (cause==null ? null : cause.toString()).

Parameters:
cause - the cause

PolicyException

public PolicyException(java.lang.String message,
                       java.lang.Throwable cause)
Constructs a new exception with the specified detail message and cause.

Parameters:
message - the detain message
cause - the cause