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


  • Jr. Member
  • **
  • Posts: 2
    • View Profile
    • Email
Error codes in the APIs
« on: July 24, 2011, 02: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: 2190
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: Error codes in the APIs
« Reply #1 on: July 25, 2011, 12:53:49 AM »
Yes, that is definitely an area that needs improvement. Thanks for the suggestion.

Embedded Systems Academy, Inc.
support at esacademy dot com