Re: override method
- From: Ian Shef <invalid@xxxxxxxxxxxxx>
- Date: Mon, 20 Jun 2005 19:50:05 GMT
"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 *
.
- References:
- override method
- From: Daniel
- override method
- Prev by Date: Re: Newbie wants to get started
- Next by Date: awt default toolkit
- Previous by thread: override method
- Next by thread: Time from UNIX epoch
- Index(es):