Re: Java Cartrige Exception error. Pls help
From: Erwin Alberto <ealberto_at_mediaone.net>
Date: Wed, 02 Jun 1999 00:25:21 -0400
Message-ID: <3754B231.24F71305_at_mediaone.net>
Date: Wed, 02 Jun 1999 00:25:21 -0400
Message-ID: <3754B231.24F71305_at_mediaone.net>
You need to enclose the line of code in question within try-catch block.
try{
session = new Session("scott", "tiger", "ora733");
}
catch(oracle.rdbms.ServerException e){
System.out.println(e.toString());
}
hope this helps...
Erwin Alberto
PORT Consulting INC.
speedy wrote:
> hi,
>
> Can Somebody kindly help on this error.
>
> > javac EmployeeReport.java
> EmployeeReport.java:65: Exception oracle.rdbms.ServerException must be
> caught, or it must be declared in the
> throws clause of this method.
> session = new Session("scott", "tiger", "ora733");
> ^
> 1 error
>
> Thanks
Received on Wed Jun 02 1999 - 06:25:21 CEST