Click here to Skip to main content
13,143,185 members (59,975 online)

Design and Architecture

 
QuestionStandard exceptions for an RPC library? Pin
johndw9416-Aug-12 19:43
memberjohndw9416-Aug-12 19:43 
AnswerRe: Standard exceptions for an RPC library? Pin
Eddy Vluggen16-Aug-12 22:30
memberEddy Vluggen16-Aug-12 22:30 
GeneralRe: Standard exceptions for an RPC library? Pin
johndw9417-Aug-12 7:09
memberjohndw9417-Aug-12 7:09 
AnswerRe: Standard exceptions for an RPC library? Pin
Eddy Vluggen17-Aug-12 8:20
memberEddy Vluggen17-Aug-12 8:20 
GeneralRe: Standard exceptions for an RPC library? Pin
johndw9417-Aug-12 10:03
memberjohndw9417-Aug-12 10:03 
GeneralRe: Standard exceptions for an RPC library? Pin
Richard MacCutchan17-Aug-12 22:14
mvpRichard 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
johndw9418-Aug-12 7:21
memberjohndw9418-Aug-12 7:21 
GeneralRe: Standard exceptions for an RPC library? Pin
Richard MacCutchan18-Aug-12 9:29
mvpRichard MacCutchan18-Aug-12 9:29 
GeneralRe: Standard exceptions for an RPC library? Pin
axpnumtheory18-Aug-12 9:32
memberaxpnumtheory18-Aug-12 9:32 
GeneralRe: Standard exceptions for an RPC library? Pin
Richard MacCutchan18-Aug-12 9:36
mvpRichard MacCutchan18-Aug-12 9:36 
QuestionRe: Standard exceptions for an RPC library? Pin
Eddy Vluggen17-Aug-12 23:07
memberEddy Vluggen17-Aug-12 23:07 
AnswerRe: Standard exceptions for an RPC library? Pin
johndw9418-Aug-12 7:36
memberjohndw9418-Aug-12 7:36 
GeneralRe: Standard exceptions for an RPC library? Pin
Eddy Vluggen18-Aug-12 7:47
memberEddy Vluggen18-Aug-12 7:47 
GeneralRe: Standard exceptions for an RPC library? Pin
johndw9418-Aug-12 8:32
memberjohndw9418-Aug-12 8:32 
GeneralRe: Standard exceptions for an RPC library? Pin
Eddy Vluggen18-Aug-12 10:43
memberEddy Vluggen18-Aug-12 10:43 
AnswerRe: Standard exceptions for an RPC library? Pin
jschell19-Aug-12 6:59
memberjschell19-Aug-12 6:59 
GeneralRe: Standard exceptions for an RPC library? Pin
Richard MacCutchan19-Aug-12 23:01
mvpRichard 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.


Advertise | Privacy |
Web03 | 2.8.170915.1 | Last Updated 20 Sep 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid