Exception Handling

QuestionsException Handling
Anand asked 7 years ago

Hi Abu,

I tried to use the try catch method in phphgrid. But when submit its not working for me.

Kindly help me to solve this issue and give me the sample code for using try catch method.

Thank you

1 Answers
Abu Ghufran answered 7 years ago

Hello,

When you use on_update, on_insert, on_delete event handlers, it gives your control via php callback function.
In those callback functions you can use any php syntax you need, including try/catch.

To response back some error to grid, you can use phpgrid_error("error message"); inside catch.

Your Answer

4 + 0 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?