|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ovm.polyd.PolyDException
ovm.polyd.PolicyException
public class PolicyException
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.
MissingMethodException
,
Serialized FormConstructor 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 |
---|
public PolicyException(java.lang.String message)
message
- the detail messagepublic PolicyException()
null
as its detail message.
public PolicyException(java.lang.Throwable cause)
(cause==null ? null : cause.toString())
.
cause
- the causepublic PolicyException(java.lang.String message, java.lang.Throwable cause)
message
- the detain messagecause
- the cause
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |