1 #include "PolicyFactory.h"
5 PolicyFactory::create_policy (CORBA::PolicyType type
,
6 const CORBA::Any
& value
)
8 // Sanity check since this condition should be caught earlier by the
9 // TAO_PolicyFactory_Registry.
10 if (type
!= Test::POLICY_TYPE
)
11 throw CORBA::PolicyError (CORBA::BAD_POLICY_TYPE
);
15 throw CORBA::INTERNAL ();