Currently, the UiPathRuntimeError
class accepts a code parameter as a free-form string to identify the error type. This approach can lead to inconsistencies in error handling across the platform.
We should update code to use an Enum instead, ensuring standardized and consistent error identification.