本文整理汇总了Java中org.omg.CORBA.portable.UnknownException类的典型用法代码示例。如果您正苦于以下问题:Java UnknownException类的具体用法?Java UnknownException怎么用?Java UnknownException使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
UnknownException类属于org.omg.CORBA.portable包,在下文中一共展示了UnknownException类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createUnknownExceptionResponse
import org.omg.CORBA.portable.UnknownException; //导入依赖的package包/类
public CorbaMessageMediator createUnknownExceptionResponse(
CorbaMessageMediator messageMediator, UnknownException ex)
{
// NOTE: This service context container gets augmented in
// tail call.
ServiceContexts contexts = null;
SystemException sys = new UNKNOWN( 0,
CompletionStatus.COMPLETED_MAYBE);
contexts = new ServiceContexts( (ORB)messageMediator.getBroker() );
UEInfoServiceContext uei = new UEInfoServiceContext(sys);
contexts.put( uei ) ;
return createSystemExceptionResponse(messageMediator, sys, contexts);
}
示例2: AbstractWriteHandler
import org.omg.CORBA.portable.UnknownException; //导入依赖的package包/类
public AbstractWriteHandler(Workbook wb, String path) {
this.wb = wb;
File f = FileCreateUtils.createFile(path);
try {
os = new FileOutputStream(f);
} catch (FileNotFoundException e) {
// system bug
f.deleteOnExit();
throw new UnknownException(e);
}
}
示例3: createUnknownExceptionResponse
import org.omg.CORBA.portable.UnknownException; //导入依赖的package包/类
public CorbaMessageMediator createUnknownExceptionResponse(
CorbaMessageMediator messageMediator,
UnknownException ex);