Java – RemoteException

RemoteException: Thrown when a remote method call fails.
Example:

import java.rmi.RemoteException;
try {
throw new RemoteException("Remote exception occurred");
} catch (RemoteException e) {
System.out.println("Caught RemoteException: " + e.getMessage());
}

No images available.