use of java.rmi.server.ServerCloneException in project jdk8u_jdk by JetBrains.
the class Chaining method main.
public static void main(String[] args) throws Exception {
Exception t = new RuntimeException();
String foo = "foo";
String fooMsg = "foo; nested exception is: \n\t" + t;
test(new RemoteException(), null, null);
test(new RemoteException(foo), foo, null);
test(new RemoteException(foo, t), fooMsg, t);
test(new ActivationException(), null, null);
test(new ActivationException(foo), foo, null);
test(new ActivationException(foo, t), fooMsg, t);
test(new ServerCloneException(foo), foo, null);
test(new ServerCloneException(foo, t), fooMsg, t);
}
Aggregations