Extract automation API to MailPoet REST API
[MAILPOET-4523]
This commit is contained in:
committed by
John Oleksowicz
parent
1b5d6bd974
commit
ba35ddf6e6
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user