Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Java Cartrige Exception error. Pls help
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 Tue Jun 01 1999 - 23:25:21 CDT
![]() |
![]() |