• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Passing DatabaseException to Client Side?

 
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.
 
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.
 
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?


 
Let's go to the waterfront with this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic