Exception Handling for Connect-REST Failure – Display Error on UI

I need guidance on implementing exception handling for a Connect-REST rule in Pega. If the connection fails (e.g., timeout or endpoint unavailable), I need to capture the error and display a user-friendly message on the UI.

Could anyone please suggest the recommended approach to handle this and propagate the error to the UI?

Thanks in advance.

Hi @RajeshNalla : Pega Provides multiple ways to handle Integration related errors. You can get to know the details about them here.

In general, the Data page should wrap the integration logic and expose required output pages including failures to the caller to process them. With the exposed output pages, the caller can either perform logics or validations accordingly.

Can you share us your high level use case for the community to better advise?

Thanks.

1 Like

Please check the below links to show user friendly error message.

1 Like

Hey @ArulDevan , thank you so much for the response!

Your reply did help me!

Actually, I’m practicing the “Error Handling” Part in Integrations my simple use case
I’m connecting to an Open Weather API and getting the weather details based on the city parameter

Hii @RameshSangili , Thank you so much!

I could figure out few things, but a lot more to dig

Now, I’m able to display an error msg on the UI, but there are other possibilities/error codes to be configured. like for Server Down Error, Connection failure error
Additionally, I want to do retry mechanism.

Any inputs to do the configs is a open handed welcome!!
Thanks in advance :grin: