X++ developers are often guilty of hard coding error messages that don’t fully convey the cause of the exception. This makes debugging to find the root cause much more difficult and frequent. The following is an example of bad error handling we need to fix: try { //logic } catch…