Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 02-02-2007
jae jae is offline
Registered User
 
Name: John Eisenman
Organization: Wink Technologies
Project: Wink
 
Join Date: Oct 2006
Posts: 18
General Slice Exception question

In a java application library, I have an existing exception hierarchy. In the slice file, I would like to specify an exception to be thrown by an Ice server developed using that application library. What's the suggested method to unify the slice generated exception(s) with those used in the application? Does my server need to catch all exceptions and rethrow exceptions specified in the slice file?
__________________
* John Eisenman
* Wink Technologies (wink.com)
Reply With Quote
  #2 (permalink)  
Old 02-02-2007
matthew's Avatar
matthew matthew is online now
ZeroC Staff
 
Name: Matthew Newhook
Organization: ZeroC, Inc.
Project: Internet Communications Engine
 
Join Date: Feb 2003
Location: NL, Canada
Posts: 1,061
Generally its a good idea to provide some layering through the slice interfaces. If you do not you just end up mirroring the entire java API which is a great way to have something that is very slow and has all sorts of interesting life cycle issues.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Exception throwing question g00fy Help Center 2 06-28-2006 08:40 PM
Question about slice and exception. OrNot Help Center 6 10-22-2005 01:07 AM
A question about Exception hierarchy in Ice rc_hz Help Center 2 06-15-2005 05:35 AM
Bad alloc exception question stephan Bug Reports 1 12-26-2004 05:22 PM
General compile question amrufon Help Center 5 08-28-2003 08:12 AM


All times are GMT -4. The time now is 01:21 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.