Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Passing DatabaseException to Client Side?

 
Da Zhu
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, Balaji,
You are right.
 
John McWon
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic