Author Topic: Error codes in the APIs  (Read 2375 times)

Ivan001

  • Jr. Member
  • **
  • Posts: 2
    • View Profile
    • Email
Error codes in the APIs
« on: July 24, 2011, 10:10:58 pm »
The FMExceptions just provide an error string which in most cases isn't appropriate for displaying to a user. My code currently checks for substrings in this and displays a more appropriate user error message but this is less than optimal and will break if you ever change the error string.

It would be good if you could provide error codes in addition to the strings.

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2098
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: Error codes in the APIs
« Reply #1 on: July 25, 2011, 08:53:49 am »
Yes, that is definitely an area that needs improvement. Thanks for the suggestion.

Andy
Embedded Systems Academy, Inc.
support at esacademy dot com