org.omg.PortableServer.POAPackage
Class InvalidPolicy

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.InvalidPolicy
All Implemented Interfaces:
Serializable, IDLEntity

public final class InvalidPolicy
extends UserException
implements IDLEntity, Serializable

Raised if any of the policy objects specified is not supported by this ORB implementation, if conflicting policy objects are specified, or if any of the specified policy objects require prior administrative action that has not been performed.

See Also:
Serialized Form

Field Summary
 short index
          The index in the policies parameter value of the first offending policy object.
 
Constructor Summary
InvalidPolicy()
          Create InvalidPolicy with no explaining message and leaving index with default 0 value.
InvalidPolicy(short a_index)
          Create the InvalidPolicy without explaining message and initialisintg index to the passed value.
InvalidPolicy(String why, short a_index)
          Create the InvalidPolicy with explaining message and initialisintg index to the passed value.
 
Method Summary
 String getMessage()
          Adds index to the super.getMessage().
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

index

public short index
The index in the policies parameter value of the first offending policy object.

Constructor Detail

InvalidPolicy

public InvalidPolicy()
Create InvalidPolicy with no explaining message and leaving index with default 0 value.


InvalidPolicy

public InvalidPolicy(String why,
                     short a_index)
Create the InvalidPolicy with explaining message and initialisintg index to the passed value.

Parameters:
why - a string, explaining, why this exception has been thrown.
a_index - a value for index.

InvalidPolicy

public InvalidPolicy(short a_index)
Create the InvalidPolicy without explaining message and initialisintg index to the passed value.

Parameters:
a_index - a value for index.
Method Detail

getMessage

public String getMessage()
Adds index to the super.getMessage().

Overrides:
getMessage in class Throwable
Returns:
the error message associated with this Throwable, may be null