Search in sources :

Example 1 with ServerCloneException

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);
}
Also used : ActivationException(java.rmi.activation.ActivationException) ServerCloneException(java.rmi.server.ServerCloneException) RemoteException(java.rmi.RemoteException) ActivationException(java.rmi.activation.ActivationException) RemoteException(java.rmi.RemoteException) ServerCloneException(java.rmi.server.ServerCloneException)

Aggregations

RemoteException (java.rmi.RemoteException)1 ActivationException (java.rmi.activation.ActivationException)1 ServerCloneException (java.rmi.server.ServerCloneException)1