Name

AccessException

Synopsis

This subclass of RemoteException is thrown when you attempt to perform an improper operation on a Naming or Registry object. A registry will only allow local requests to bind, rebind or unbind objects, so an attempt to call these methods on a remote registry will result in an AccessException being thrown.

                  Exceptions
public class AccessException extends RemoteException {
// Public Constructors
   public AccessException( String s);  
   public AccessException( String s, Exception ex);  
}

Thrown By

java.rmi.registry.Registry.{bind(), list(), lookup(), rebind(), unbind()}

Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.