Error Handling
If there are exceptions/errors when an IoT event is invoked by asset's IoT framework, they will be of type System exception or Application exception.
Application exceptions are raised/thrown when a business logic is invalid. These exceptions are managed/controlled as part of implementation. System exceptions are managed by Salesforce. ServiceMax does not have control over system exceptions. The calling IoT system should handle both types of exceptions and differentiate between the two.
System Exceptions
System exceptions are managed by Salesforce. For more inofmration, see
Salesforce documentation.
Applicable Exceptions
Application exceptions will have the following attributes:
• errorCode - Code that uniquely identifies the error encountered*
• message - Informative message regarding the error encountered
• exception - Detailed message regarding the error encountered
Currently, there are no defined errorCodes. They will be supported in the future. The following is an example an Application exception.
{
"errorCode": "",
"message": "Invalid payload",
"exceptionMessage": "Installed Product not found"
}