Right place to handle runtime connection error to Connect-REST when used in Data Page
I have a data page using a Connect-REST rule to get some info from an external system. I'm having a problem today with the service being down for maintenance and the data page causing an ugly error whenever I try to call it.
I tried adding a simple PostLoadProcessing step to the data page but it doesn't seem to handle the runtime exception I'm getting from the Connect-REST. My question is ... where is this type of error best handled and in what way? Ideally I'd like to capture the fact it happened, write soemthing to a property and alert the user. Right now, the unhandled exception causes the screen to freeze up and I can't get anyone to get out of it nicely.