Jump to:

23370 Posts in 18160 Topics by 2864 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: 993 Views
  • danzzz
    Avatar
    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 ...

    thx

  • Willr
    Avatar
    Forum Moderator
    5489 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!

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