Error Messaged and Error Code design

Posted by Ved on Stack Overflow See other posts from Stack Overflow or by Ved
Published on 2010-04-22T21:28:41Z Indexed on 2010/04/22 21:43 UTC
Read the original article Hit count: 320

Filed under:
|
|
|
|

We are designing set of web services which will return XML string in response. These are RESTFul services so I will have to send exception inside element. I am planing to design set of Error code which can help me determine where level occured just by looking at the code.

For Example

1000 - Application Level 2000 - DB level 3000 - Network level

so if I have error message then I can know right away that this was an application level error and it came from 1st business module.

I am not very experience in this so I would love to here your thoughts and criticism.

Thanks

© Stack Overflow or respective owner

Related posts about exception

Related posts about exception-handling