Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

my own try {} catch {}

Go to End

2 Posts   1268 Views


Community Member, 175 Posts

5 April 2011 at 1:26am

hi there,

I cant use my own try, catch stuff. It seems that SS do that before ... ?
How to solve that, in some cases I want to use my own try,catch block ...



Forum Moderator, 5521 Posts

6 April 2011 at 8:10pm

You can use your own try / catch in SS methods. Currently the core doesn't use exceptions so for anything that throws user_error() you cannot 'catch' it but for your own code go crazy!