org.omg.CORBA

Class PolicyErrorHelper

public abstract class PolicyErrorHelper extends Object

The helper operations for the exception {@link PolicyError}.
Method Summary
static PolicyErrorextract(Any any)
Extract the PolicyError from given Any.
static Stringid()
Get the PolicyError repository id.
static voidinsert(Any any, PolicyError that)
Insert the PolicyError into the given Any.
static PolicyErrorread(InputStream input)
Read the exception from the CDR intput stream.
static TypeCodetype()
Create the PolicyError typecode.
static voidwrite(OutputStream output, PolicyError value)
Write the exception to the CDR output stream.

Method Detail

extract

public static PolicyError extract(Any any)
Extract the PolicyError from given Any. This method uses the PolicyErrorHolder.

Throws: BAD_OPERATION if the passed Any does not contain PolicyError.

id

public static String id()
Get the PolicyError repository id.

Returns: "IDL:omg.org/CORBA/PolicyError:1.0", always.

insert

public static void insert(Any any, PolicyError that)
Insert the PolicyError into the given Any. This method uses the PolicyErrorHolder.

Parameters: any the Any to insert into. that the PolicyError to insert.

read

public static PolicyError read(InputStream input)
Read the exception from the CDR intput stream.

Parameters: input a org.omg.CORBA.portable stream to read from.

type

public static TypeCode type()
Create the PolicyError typecode. The typecode defines a structure, named "PolicyError", containing the PolicyErrorCode (alias int, see {@link PolicyErrorCodeHelper}) field, named "reason".

write

public static void write(OutputStream output, PolicyError value)
Write the exception to the CDR output stream.

Parameters: output a org.omg.CORBA.portable stream stream to write into. value a value to write.