Project

General

Profile

Actions

Feature proposal #6562

closed

Implement better error handling

Added by krileon almost 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
03 April 2017
Due date:
% Done:

100%

Estimated time:

Description

Add a try-catch around the execution of an action and output the error if debugging is enabled otherwise allow it to silently fail. Error usages within actions themselves should then just be changed to throw an exception.

Actions #1

Updated by krileon almost 7 years ago

If Joomla OR action debugging is enabled then it should output the exceptions otherwise just suppress them. This should prevent out of date APIs, etc.. from causing fatal crashes from CB Auto Actions.

Actions #2

Updated by krileon over 6 years ago

  • Status changed from Assigned to Resolved
  • % Done changed from 0 to 100

Improved error handling with an error function for actions. That then is passed to the auto action table object. If debug is enabled it'll output to the Joomla message queue instead of randomly throwing a var dump into the page. Action trigger and execute from auto action table object are also enclosed in a try catch to catch api errors (exception message will be set to an error) to try and prevent blocking from fatal errors.

Actions #3

Updated by krileon over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF