org.omg.PortableServer.POAPackage

Class InvalidPolicy

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.
Field Summary
shortindex
The index in the policies parameter value of the first offending policy object.
Constructor Summary
InvalidPolicy()
Create InvalidPolicy with no explaining message and leaving {@link #index} with default 0 value.
InvalidPolicy(String why, short a_index)
Create the InvalidPolicy with explaining message and initialisintg {@link #index} to the passed value.
InvalidPolicy(short a_index)
Create the InvalidPolicy without explaining message and initialisintg {@link #index} to the passed value.
Method Summary
StringgetMessage()
Adds {@link #index} to the super.getMessage().

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 {@link #index} with default 0 value.

InvalidPolicy

public InvalidPolicy(String why, short a_index)
Create the InvalidPolicy with explaining message and initialisintg {@link #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 {@link #index} to the passed value.

Parameters: a_index a value for index.

Method Detail

getMessage

public String getMessage()
Adds {@link #index} to the super.getMessage().