Jump to:

23552 Posts in 19349 Topics by 2891 members

General Questions

SilverStripe Forums » General Questions » my own try {} catch {}

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

Page: 1
Go to End
Author Topic: 1013 Views
  • danzzz
    Community Member
    175 Posts

    my own try {} catch {} Link to this post

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


  • Willr
    Forum Moderator
    5511 Posts

    Re: my own try {} catch {} Link to this post

    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!

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.