0

Location of org.alljoyn.error

asked 2015-05-21 05:18:56 -0700

mfinch gravatar image

I am looking through repository looking for a list of defined error responses, is such a list maintained, or is any string foo acceptable to return as part of org.alljoyn.error.foo?

Thanks in advance

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-05-22 01:39:13 -0700

praveenb gravatar image

The list of defined error responses in AJ Core can be seen here: https://git.allseenalliance.org/cgit/core/ajtcl.git/tree/src/aj_std.c

Also, Base Services frameworks seem to be the same errors can be found at: https://git.allseenalliance.org/cgit/services/base_tcl.git/tree/services_common/inc/alljoyn/services_common/ServicesCommon.h

The errors in AJ Core (or Base services) have the prefix org.alljoyn because they are errors being indicated by AJ Core (or Base services).

Yes, any string is acceptable to be sent as an error when your application wants to return an error as a reponse to a method request. However, its best if you use prefixes that correspond to the interfaces used in your application to indicate application-specific errors. This link might be a good read for additional information.

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2015-05-21 05:18:56 -0700

Seen: 28 times

Last updated: May 22 '15