cancel
Showing results for 
Search instead for 
Did you mean: 

Raise Alert Message if a function fails in sapui5

0 Kudos

Hello everyone

I have a requirement that if a function has a error it should show alert messagebox. Can you please help me figure it out.

Thanks & regards.

Gowtham

Accepted Solutions (1)

Accepted Solutions (1)

junwu
Active Contributor
0 Kudos

surround it with try-catch

Sharathmg
Active Contributor

And use error returned in catch and Message box or message toast to display errors or custom error text to user.

0 Kudos

Hi Jun Wu,

I tried as per your suggestion,it works..

Thanks.

Answers (0)