Click here to Skip to main content
12,821,670 members (28,545 online)

Design and Architecture

 
GeneralRe: Standard exceptions for an RPC library? Pin
axpnumtheory18-Aug-12 10:32
memberaxpnumtheory18-Aug-12 10:32 
GeneralRe: Standard exceptions for an RPC library? Pin
Richard MacCutchan18-Aug-12 10:36
mvpRichard MacCutchan18-Aug-12 10:36 
QuestionRe: Standard exceptions for an RPC library? Pin
Eddy Vluggen18-Aug-12 0:07
memberEddy Vluggen18-Aug-12 0:07 
AnswerRe: Standard exceptions for an RPC library? Pin
johndw9418-Aug-12 8:36
memberjohndw9418-Aug-12 8:36 
GeneralRe: Standard exceptions for an RPC library? Pin
Eddy Vluggen18-Aug-12 8:47
memberEddy Vluggen18-Aug-12 8:47 
GeneralRe: Standard exceptions for an RPC library? Pin
johndw9418-Aug-12 9:32
memberjohndw9418-Aug-12 9:32 
GeneralRe: Standard exceptions for an RPC library? Pin
Eddy Vluggen18-Aug-12 11:43
memberEddy Vluggen18-Aug-12 11:43 
AnswerRe: Standard exceptions for an RPC library? Pin
jschell19-Aug-12 7:59
memberjschell19-Aug-12 7: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 MacCutchan20-Aug-12 0:01
mvpRichard MacCutchan20-Aug-12 0:01 
QuestionHow to introduce Continuous Integration? Pin
Bernhard Hiller24-Jul-12 23:31
memberBernhard Hiller24-Jul-12 23:31 
AnswerRe: How to introduce Continuous Integration? Pin
Eddy Vluggen4-Aug-12 23:34
memberEddy Vluggen4-Aug-12 23:34 
GeneralRe: How to introduce Continuous Integration? Pin
Bernhard Hiller5-Aug-12 21:54
memberBernhard Hiller5-Aug-12 21:54 
GeneralRe: How to introduce Continuous Integration? Pin
Eddy Vluggen6-Aug-12 0:10
memberEddy Vluggen6-Aug-12 0:10 
GeneralRe: How to introduce Continuous Integration? Pin
pasztorpisti6-Aug-12 5:43
memberpasztorpisti6-Aug-12 5:43 
GeneralRe: How to introduce Continuous Integration? Pin
Eddy Vluggen6-Aug-12 5:53
memberEddy Vluggen6-Aug-12 5:53 
GeneralRe: How to introduce Continuous Integration? Pin
pasztorpisti6-Aug-12 6:07
memberpasztorpisti6-Aug-12 6:07 
GeneralRe: How to introduce Continuous Integration? Pin
Eddy Vluggen6-Aug-12 6:57
memberEddy Vluggen6-Aug-12 6:57 
GeneralRe: How to introduce Continuous Integration? Pin
pasztorpisti6-Aug-12 7:09
memberpasztorpisti6-Aug-12 7:09 
AnswerRe: How to introduce Continuous Integration? Pin
pasztorpisti6-Aug-12 5:34
memberpasztorpisti6-Aug-12 5:34 
GeneralRe: How to introduce Continuous Integration? Pin
Bernhard Hiller6-Aug-12 22:19
memberBernhard Hiller6-Aug-12 22:19 
GeneralRe: How to introduce Continuous Integration? Pin
pasztorpisti6-Aug-12 23:12
memberpasztorpisti6-Aug-12 23:12 
AnswerRe: How to introduce Continuous Integration? Pin
BobJanova6-Aug-12 6:19
memberBobJanova6-Aug-12 6:19 
GeneralRe: How to introduce Continuous Integration? Pin
Bernhard Hiller6-Aug-12 22:21
memberBernhard Hiller6-Aug-12 22:21 
GeneralRe: How to introduce Continuous Integration? Pin
pasztorpisti6-Aug-12 23:17
memberpasztorpisti6-Aug-12 23:17 
GeneralRe: How to introduce Continuous Integration? Pin
BobJanova7-Aug-12 1:24
memberBobJanova7-Aug-12 1: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.


Advertise | Privacy | Mobile
Web02 | 2.8.170308.1 | Last Updated 16 Mar 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid