Search in sources :

Example 6 with ActivationException

use of java.rmi.activation.ActivationException 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

ActivationException (java.rmi.activation.ActivationException)6 RemoteException (java.rmi.RemoteException)5 NoSuchObjectException (java.rmi.NoSuchObjectException)4 UnknownObjectException (java.rmi.activation.UnknownObjectException)3 IOException (java.io.IOException)2 InvocationTargetException (java.lang.reflect.InvocationTargetException)2 SocketException (java.net.SocketException)1 AccessException (java.rmi.AccessException)1 AlreadyBoundException (java.rmi.AlreadyBoundException)1 ConnectException (java.rmi.ConnectException)1 ConnectIOException (java.rmi.ConnectIOException)1 NotBoundException (java.rmi.NotBoundException)1 Remote (java.rmi.Remote)1 ActivationGroupDesc (java.rmi.activation.ActivationGroupDesc)1 ActivationGroupID (java.rmi.activation.ActivationGroupID)1 ActivationInstantiator (java.rmi.activation.ActivationInstantiator)1 ActivationSystem (java.rmi.activation.ActivationSystem)1 UnknownGroupException (java.rmi.activation.UnknownGroupException)1 RMIClassLoader (java.rmi.server.RMIClassLoader)1 ServerCloneException (java.rmi.server.ServerCloneException)1