Click here to Skip to main content
15,896,063 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
QuestionStandard exceptions for an RPC library? Pin
axpnumtheory16-Aug-12 19:43
axpnumtheory16-Aug-12 19:43 
AnswerRe: Standard exceptions for an RPC library? Pin
Eddy Vluggen16-Aug-12 22:30
professionalEddy Vluggen16-Aug-12 22:30 
GeneralRe: Standard exceptions for an RPC library? Pin
axpnumtheory17-Aug-12 7:09
axpnumtheory17-Aug-12 7:09 
AnswerRe: Standard exceptions for an RPC library? Pin
Eddy Vluggen17-Aug-12 8:20
professionalEddy Vluggen17-Aug-12 8:20 
GeneralRe: Standard exceptions for an RPC library? Pin
axpnumtheory17-Aug-12 10:03
axpnumtheory17-Aug-12 10:03 
GeneralRe: Standard exceptions for an RPC library? Pin
Richard MacCutchan17-Aug-12 22:14
mveRichard MacCutchan17-Aug-12 22:14 
The usual way round this is to have your library provide core functionality, and its own set of internal exceptions. You then add a wrapper for each language which maps method/function calls and internal library data to the types required by the language.

[edit]
Alternatively, forget about exceptions and just use return codes to indicate success or failure of client requests. XML offers many possible ways of achieving this.
[/edit]
One of these days I'm going to think of a really clever signature.

GeneralRe: Standard exceptions for an RPC library? Pin
axpnumtheory18-Aug-12 7:21
axpnumtheory18-Aug-12 7:21 
GeneralRe: Standard exceptions for an RPC library? Pin
Richard MacCutchan18-Aug-12 9:29
mveRichard MacCutchan18-Aug-12 9:29 
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 
GeneralRe: Standard exceptions for an RPC library? Pin
Richard MacCutchan19-Aug-12 23:01
mveRichard MacCutchan19-Aug-12 23:01 

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.