本文整理了Java中java.rmi.RemoteException.initCause
方法的一些代码示例,展示了RemoteException.initCause
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RemoteException.initCause
方法的具体详情如下:
包路径:java.rmi.RemoteException
类名称:RemoteException
方法名:initCause
暂无
代码示例来源:origin: com.kohlschutter.junixsocket/junixsocket-rmi
public SocketDirAndPort(File socketDir, int port) throws RemoteException {
try {
this.socketDir = socketDir.getCanonicalFile();
} catch (IOException e) {
throw (RemoteException) new RemoteException(e.getMessage()).initCause(e);
}
this.port = port;
}
代码示例来源:origin: com.kohlschutter.junixsocket/junixsocket-rmi
PortAssigner getPortAssignerFromRegistry() throws RemoteException, NotBoundException {
PortAssigner assigner;
synchronized (PortAssigner.class) {
try {
assigner = (PortAssigner) lookup(PORT_ASSIGNER_ID);
} catch (MalformedURLException e) {
throw (RemoteException) new RemoteException(e.getMessage()).initCause(e);
}
return assigner;
}
}
代码示例来源:origin: org.apache.yoko/yoko-rmi-impl
public void connect(Remote target, Remote source)
throws java.rmi.RemoteException {
if (!(source instanceof javax.rmi.CORBA.Stub))
source = toStub(source);
ObjectImpl obj;
if (target instanceof ObjectImpl) {
obj = (ObjectImpl) target;
} else {
try {
exportObject(target);
} catch (java.rmi.RemoteException ex) {
// ignore "already exported test" //
}
try {
obj = (ObjectImpl) toStub(target);
} catch (java.rmi.NoSuchObjectException ex) {
throw (java.rmi.RemoteException)new
java.rmi.RemoteException("cannot convert to stub!").initCause(ex);
}
}
try {
((javax.rmi.CORBA.Stub) source).connect(((ObjectImpl) obj)._orb());
} catch (org.omg.CORBA.BAD_OPERATION bad_operation) {
throw (RemoteException)new RemoteException(bad_operation.getMessage())
.initCause(bad_operation);
}
}
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
rexc.initCause( exc ) ;
throw rexc ;
代码示例来源:origin: jboss/jboss-javaee-specs
rexc.initCause(exc);
throw rexc;
代码示例来源:origin: org.jboss.spec.javax.rmi/jboss-rmi-api_1.0_spec
rexc.initCause(exc);
throw rexc;
内容来源于网络,如有侵权,请联系作者删除!