
Because it is a system Enum, it cannot be modified, so users cannot add new exception types. The exception type is identified using the system-based enumeration called an exception. Many exception types are determined by the kernel and are not normally thrown by application code.Īll exception types, however, can be caught, and it is the developers’ responsibility to decide which exceptions need to be handled. There are several types of exception and the type differs, depending on what caused the error. Learn more on how to manage your business with Dynamics 365

In this article, I will explore how to develop a uniform way to catch the multiple types of exception that can be raised in X++. When we write code or make customizations to Dynamics 365 for Operation, which uses X++, we should make use of exception handling to provide some context for the message or a different, more useful message.
