error code define instead of magic numbers?

0 votes

Ate there error code #defines for the errors listed at the bottom of: 

http://api.shephertz.com/app42-docs/nosql-storage-service/

http://api.shephertz.com/app42-docs/user-management-service/

 

I don't want to use the magic numbers in case they change:

 

  1.    if(appErrorCode == 2001)  
  2.     {    
  3.     }  
  4.     else if(appErrorCode  == 2005)  
  5.     {  
asked Jun 25, 2014 in App42 Cloud API-BaaS by huffman (17 points)

1 Answer

0 votes
Hi,

These are the app error code which is not going to change in future.

Let me know if you are stuck to use these error code.

Thanks.
answered Jun 25, 2014 by hs00105 (517 points)
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...