当前位置: 首页>>代码示例>>Java>>正文


Java UnknownException类代码示例

本文整理汇总了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);
}
 
开发者ID:campolake,项目名称:openjdk9,代码行数:14,代码来源:CorbaMessageMediatorImpl.java

示例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);
	}

}
 
开发者ID:bingyulei007,项目名称:bingexcel,代码行数:13,代码来源:AbstractWriteHandler.java

示例3: createUnknownExceptionResponse

import org.omg.CORBA.portable.UnknownException; //导入依赖的package包/类
public CorbaMessageMediator createUnknownExceptionResponse(
CorbaMessageMediator messageMediator,
UnknownException ex);
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:4,代码来源:CorbaProtocolHandler.java


注:本文中的org.omg.CORBA.portable.UnknownException类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。