org.omg.PortableServer.POAPackage

Class WrongPolicy

public final class WrongPolicy extends UserException implements IDLEntity, Serializable

Raised when invoking the operation that is not allowed by the current combination of the used policies.
Constructor Summary
WrongPolicy()
Create WrongPolicy with no explaining message.
WrongPolicy(String why)
Create the WrongPolicy with explaining message.

Constructor Detail

WrongPolicy

public WrongPolicy()
Create WrongPolicy with no explaining message.

WrongPolicy

public WrongPolicy(String why)
Create the WrongPolicy with explaining message.

Parameters: why a string, explaining, why this exception has been thrown.