org.omg.CORBA

Class PolicyError

public final class PolicyError extends UserException implements IDLEntity, Serializable

The exception is thrown when a policy error occurs. A PolicyError exception may include one of the following error reason codes: {@link BAD_POLICY}, {@link BAD_POLICY_TYPE}, {@link BAD_POLICY_VALUE}, {@link UNSUPPORTED_POLICY}, {@link UNSUPPORTED_POLICY_VALUE}.
Field Summary
shortreason
Holds the exception reason code, one of {@link BAD_POLICY}, {@link BAD_POLICY_TYPE}, {@link BAD_POLICY_VALUE}, {@link UNSUPPORTED_POLICY}, {@link UNSUPPORTED_POLICY_VALUE}.
Constructor Summary
PolicyError()
Constructs an uninitialised instance of the policy error.
PolicyError(short a_reason)
Constructs the policy error with the given reason code.
PolicyError(String a_details, short a_reason)
Constructs the policy error with the given reason code and the detailed message.

Field Detail

reason

public short reason
Holds the exception reason code, one of {@link BAD_POLICY}, {@link BAD_POLICY_TYPE}, {@link BAD_POLICY_VALUE}, {@link UNSUPPORTED_POLICY}, {@link UNSUPPORTED_POLICY_VALUE}.

Constructor Detail

PolicyError

public PolicyError()
Constructs an uninitialised instance of the policy error.

PolicyError

public PolicyError(short a_reason)
Constructs the policy error with the given reason code.

Parameters: a_reason a reason code, one of {@link BAD_POLICY}, {@link BAD_POLICY_TYPE}, {@link BAD_POLICY_VALUE}, {@link UNSUPPORTED_POLICY}, {@link UNSUPPORTED_POLICY_VALUE}.

PolicyError

public PolicyError(String a_details, short a_reason)
Constructs the policy error with the given reason code and the detailed message.

Parameters: a_details the detailed message. a_reason a reason code, one of {@link BAD_POLICY}, {@link BAD_POLICY_TYPE}, {@link BAD_POLICY_VALUE}, {@link UNSUPPORTED_POLICY}, {@link UNSUPPORTED_POLICY_VALUE}.