Re: override method



"Daniel" <dannyman263@xxxxxxxxx> wrote in
news:487ec$42b2009d$52ade8f3$7185@xxxxxxxxxxxxxxxx:

> I want to implement rmi and get this error
>
> test/PatientGui.java [151:1] getEnToonData() in test.PatientGui cannot
> override getEnToonData() in test.ViewModel; overridden method does not
> throw java.rmi.RemoteException
>
> Public class PatientGui
> void getEnToonData() throws java.rmi.RemoteException
> {
>:
> }
<snip>
> If i remove the throws java.rmi.RemoteException, the compiler tells me
> it should be thrown.
>
> How can i solve this?
<snip>

Put your code for getEnToonData() in a try...catch...finally block, and
handle java.rmi.RemoteException yourself ?



--
Ian Shef 805/F6 * These are my personal opinions
Raytheon Company * and not those of my employer.
PO Box 11337 *
Tucson, AZ 85734-1337 *
.