org.omg.PortableServer.POAPackage
Class WrongPolicy

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.omg.CORBA.UserException
              extended by org.omg.PortableServer.POAPackage.WrongPolicy
All Implemented Interfaces:
Serializable, IDLEntity

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.

See Also:
Serialized Form

Constructor Summary
WrongPolicy()
          Create WrongPolicy with no explaining message.
WrongPolicy(String why)
          Create the WrongPolicy with explaining message.
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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.