Click here to Skip to main content
15,887,776 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
GeneralRe: Standard exceptions for an RPC library? Pin
axpnumtheory18-Aug-12 9:32
axpnumtheory18-Aug-12 9:32 
GeneralRe: Standard exceptions for an RPC library? Pin
Richard MacCutchan18-Aug-12 9:36
mveRichard MacCutchan18-Aug-12 9:36 
QuestionRe: Standard exceptions for an RPC library? Pin
Eddy Vluggen17-Aug-12 23:07
professionalEddy Vluggen17-Aug-12 23:07 
AnswerRe: Standard exceptions for an RPC library? Pin
axpnumtheory18-Aug-12 7:36
axpnumtheory18-Aug-12 7:36 
GeneralRe: Standard exceptions for an RPC library? Pin
Eddy Vluggen18-Aug-12 7:47
professionalEddy Vluggen18-Aug-12 7:47 
GeneralRe: Standard exceptions for an RPC library? Pin
axpnumtheory18-Aug-12 8:32
axpnumtheory18-Aug-12 8:32 
GeneralRe: Standard exceptions for an RPC library? Pin
Eddy Vluggen18-Aug-12 10:43
professionalEddy Vluggen18-Aug-12 10:43 
AnswerRe: Standard exceptions for an RPC library? Pin
jschell19-Aug-12 6:59
jschell19-Aug-12 6:59 
Thread is getting confused so I am going to rephrase to what I think has been said.

You have a communications library/protocol. You want to allow 'exceptions' to the 'thrown' via that. And you want to support many languages.

That means your library MUST have the following components.
1. A server component.
2. A client component.

In terms of generality 1 and 2 can be different programming languages withing the same enterprise.

So that means that you MUST do the following.
A. Create your OWN protocol method for transmitting an 'exception'. Note that this does NOT mean nor can it mean that you use a language specific exception. Your protocol must NOT use any such exception.
B. Implement your protocol (1) such that is has some common idioms for supporting communication errors. It does that because communication errors are the only common error type that such a library intrinsically knows about.
C. Optionally you provide a way for an implementer to 'extend' your protocol to add their own 'exception' (again this will NOT be a language specific exception.)

AFTER you complete the above then you do the following.
1. Implement your library server code for a specific language so that it catches ALL language specific exceptions. And then it converts them into your protocol as defined above. That and only that is what is sent to the client library.
2. Implement your client library for a specific language so that it receives the protocol 'exception' and translates it into an appropriate language specific exception.


AFTER you have complete all of the above if you have and specific exceptions for specific languages that you want to implement then you use C above to modify the specific library components, perhaps only on the server side but perhaps both sides as well.

If you are clever then you will find that there are ways to define A such that you can use a configuration (rather than code) to add in new language exceptions both in the server and client.
GeneralRe: Standard exceptions for an RPC library? Pin
Richard MacCutchan19-Aug-12 23:01
mveRichard MacCutchan19-Aug-12 23:01 
QuestionHow to introduce Continuous Integration? Pin
Bernhard Hiller24-Jul-12 22:31
Bernhard Hiller24-Jul-12 22:31 
AnswerRe: How to introduce Continuous Integration? Pin
Eddy Vluggen4-Aug-12 22:34
professionalEddy Vluggen4-Aug-12 22:34 
GeneralRe: How to introduce Continuous Integration? Pin
Bernhard Hiller5-Aug-12 20:54
Bernhard Hiller5-Aug-12 20:54 
GeneralRe: How to introduce Continuous Integration? Pin
Eddy Vluggen5-Aug-12 23:10
professionalEddy Vluggen5-Aug-12 23:10 
GeneralRe: How to introduce Continuous Integration? Pin
pasztorpisti6-Aug-12 4:43
pasztorpisti6-Aug-12 4:43 
GeneralRe: How to introduce Continuous Integration? Pin
Eddy Vluggen6-Aug-12 4:53
professionalEddy Vluggen6-Aug-12 4:53 
GeneralRe: How to introduce Continuous Integration? Pin
pasztorpisti6-Aug-12 5:07
pasztorpisti6-Aug-12 5:07 
GeneralRe: How to introduce Continuous Integration? Pin
Eddy Vluggen6-Aug-12 5:57
professionalEddy Vluggen6-Aug-12 5:57 
GeneralRe: How to introduce Continuous Integration? Pin
pasztorpisti6-Aug-12 6:09
pasztorpisti6-Aug-12 6:09 
AnswerRe: How to introduce Continuous Integration? Pin
pasztorpisti6-Aug-12 4:34
pasztorpisti6-Aug-12 4:34 
GeneralRe: How to introduce Continuous Integration? Pin
Bernhard Hiller6-Aug-12 21:19
Bernhard Hiller6-Aug-12 21:19 
GeneralRe: How to introduce Continuous Integration? Pin
pasztorpisti6-Aug-12 22:12
pasztorpisti6-Aug-12 22:12 
AnswerRe: How to introduce Continuous Integration? Pin
BobJanova6-Aug-12 5:19
BobJanova6-Aug-12 5:19 
GeneralRe: How to introduce Continuous Integration? Pin
Bernhard Hiller6-Aug-12 21:21
Bernhard Hiller6-Aug-12 21:21 
GeneralRe: How to introduce Continuous Integration? Pin
pasztorpisti6-Aug-12 22:17
pasztorpisti6-Aug-12 22:17 
GeneralRe: How to introduce Continuous Integration? Pin
BobJanova7-Aug-12 0:24
BobJanova7-Aug-12 0:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.