Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-cron
Test
Unit
Model
CronJobException.php
Go to the documentation of this file.
1
<?php
11
namespace
Magento\Cron\Test\Unit\Model
;
12
13
class
CronJobException
14
{
18
private
$exception;
19
23
public
function
__construct
(\Throwable $exception =
null
)
24
{
25
$this->exception = $exception;
26
}
27
31
public
function
execute
()
32
{
33
if
(!$this->exception) {
34
$this->exception = new \Exception(
'Test exception'
);
35
}
36
throw
$this->exception;
37
}
38
}
Magento\Cron\Test\Unit\Model\CronJobException\__construct
__construct(\Throwable $exception=null)
Definition:
CronJobException.php:23
Magento\Cron\Test\Unit\Model\CronJobException\execute
execute()
Definition:
CronJobException.php:31
Magento\Cron\Test\Unit\Model
Magento\Cron\Test\Unit\Model\CronJobException
Definition:
CronJobException.php:13