aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Passing DatabaseException to Client Side? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Passing DatabaseException to Client Side?" Watch "Passing DatabaseException to Client Side?" New topic
Author

Passing DatabaseException to Client Side?

Da Zhu
Greenhorn

Joined: Jan 02, 2001
Posts: 29
As we know the methods in Data class may throw DatabaseException, I am wondering if your guys pass this exception to the client side, say to the gui class.
If yes, then the DatabaseException.class has to be
on the client side too, while I think we should move all
the db package to the server side.
balaji sambandam
Greenhorn

Joined: Dec 30, 2000
Posts: 18
The DB package should be accessible in both client and
server side as the server returns DataInfo and fieldInfo
object during database operations
Originally posted by Da Zhu:
As we know the methods in Data class may throw DatabaseException, I am wondering if your guys pass this exception to the client side, say to the gui class.
If yes, then the DatabaseException.class has to be
on the client side too, while I think we should move all
the db package to the server side.

Da Zhu
Greenhorn

Joined: Jan 02, 2001
Posts: 29
Thanks, Balaji,
You are right.
John McWon
Greenhorn

Joined: Jan 04, 2001
Posts: 4
I could not understand "The DB package should be accessible in both client and server side". You mean one the server side need the DB package or both server and client side need the DB package? I think both will need because you need the DB package in client side so that you can declare DataInfo and fieldInfo instances at the client side. after the declaration, you can assign values which passed from the server side, right?
balaji sambandam
Greenhorn

Joined: Dec 30, 2000
Posts: 18
you need to have db package in both client and server
side
Originally posted by John McWon:
I could not understand "The DB package should be accessible in both client and server side". You mean one the server side need the DB package or both server and client side need the DB package? I think both will need because you need the DB package in client side so that you can declare DataInfo and fieldInfo instances at the client side. after the declaration, you can assign values which passed from the server side, right?

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Passing DatabaseException to Client Side?