Jump to content

Handling exceptions in template logic?


DChiuch

Recommended Posts

Hi, is there any way to catch exceptions in template logic?

My template logic includes a \IPS\gallery\Image::loadFromUrl($url); call, and at the moment, if I try to load a gallery image which doesn't exist, I get "exception 'OutOfRangeException'". I'd like to be able to handle this so that the page loads with no image, rather than having the page be entirely broken.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...