Extract automation API to MailPoet REST API

[MAILPOET-4523]
This commit is contained in:
Jan Jakes
2022-09-09 15:19:46 +02:00
committed by John Oleksowicz
parent 1b5d6bd974
commit ba35ddf6e6
21 changed files with 190 additions and 104 deletions

View File

@ -2,12 +2,14 @@
namespace MailPoet\Automation\Engine\Exceptions;
use Exception as PhpException;
use MailPoet\API\REST\Exception as RestException;
use Throwable;
/**
* Frames all MailPoet Automation exceptions ("$e instanceof MailPoet\Automation\Exception").
*/
abstract class Exception extends \Exception {
abstract class Exception extends PhpException implements RestException {
/** @var int */
protected $statusCode = 500;