Re: RemoteException inheritance

Gregg Wonderly <[email protected]>
Newsgroups gmane.comp.java.sun.rmi
Message-ID <[email protected]>
Paulo Melo wrote:
> Hi!!
>
>   I made my specific's RemoteException for my application, but the VM  don't accept, saying that my implementations methods are illegal.

All methods on your remote interface must throw RemoteException, or one of its
superclasses.  Throwing a subclass doesn't meet the checks that the RMI, JRMP
mechanisms carry out.

Gregg Wonderly

===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff RMI-USERS".  For general help, send email to
[email protected] and include in the body of the message "help".

For a list of frequently asked RMI questions please refer to:
http://java.sun.com/j2se/1.3/docs/guide/rmi/faq.html

To view past RMI-USERS postings, please see:
http://archives.java.sun.com/archives/rmi-users.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.