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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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   1590 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, 5523 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!