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, biapar, Willr, Ingo, swaiba, simon_w

my own try {} catch {}


Reply


2 Posts   1088 Views

Avatar
danzzz

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 ...

thx

Avatar
Willr

Forum Moderator, 5513 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!