Hi,
How can i differentiate Transient And fatal error at run time?
I implemented resource monitoring mechanism in trigger.
Subscriber Service:
Main(Success){
Try(Failure){
MAP
DB Activities
}
Catch(Done){
getLastError
if (error=Transient Error), set isAvailable =false.
}
}
Branch on isAvailable
false, ThrowExceptionForRetry.
Resource Monitor Service:
Main(Success){
Try(Failure){
Check the DB Status
Set isAvailable=true
}
Catch{
Set isAvailable=False.
}
}
My doubt how to check transient error occurred in the subscribing service try block from lastError?