Skip to content

Commit ce3ac88

Browse files
author
Alex Paliarush
committed
MAGETWO-65444: Add @api annotation to exception framework
1 parent d7d70e9 commit ce3ac88

File tree

59 files changed

+137
-44
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+137
-44
lines changed

app/code/Magento/Catalog/Model/Product/Exception.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77

88
use Magento\Framework\Exception\LocalizedException;
99

10+
/**
11+
* @api
12+
*/
1013
class Exception extends LocalizedException
1114
{
1215
}

app/code/Magento/CatalogSearch/Model/Indexer/Scope/IndexTableNotExistException.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
/**
1313
* Exception which represents situation where temporary index table should be used somewhere,
1414
* but it does not exist in a database
15+
*
16+
* @api
1517
*/
1618
class IndexTableNotExistException extends LocalizedException
1719
{

app/code/Magento/CatalogSearch/Model/Indexer/Scope/UnknownStateException.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
/**
1313
* Exception for situation where used state which is not defined in configuration
14+
*
15+
* @api
1416
*/
1517
class UnknownStateException extends LocalizedException
1618
{

app/code/Magento/Checkout/Exception.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
*/
66
namespace Magento\Checkout;
77

8+
/**
9+
* @api
10+
*/
811
class Exception extends \Magento\Framework\Exception\LocalizedException
912
{
1013
}

app/code/Magento/Eav/Model/Entity/Attribute/AttributeGroupAlreadyExistsException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use Magento\Framework\Exception\AlreadyExistsException;
99

1010
/**
11-
* Class AttributeGroupAlreadyExistsException
11+
* @api
1212
*/
1313
class AttributeGroupAlreadyExistsException extends AlreadyExistsException
1414
{

app/code/Magento/Eav/Model/Entity/Attribute/Exception.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/**
99
* EAV entity attribute exception
1010
*
11-
* @author Magento Core Team <core@magentocommerce.com>
11+
* @api
1212
*/
1313
class Exception extends \Magento\Framework\Exception\LocalizedException
1414
{

app/code/Magento/OfflineShipping/Model/ResourceModel/Carrier/Tablerate/CSV/ColumnNotFoundException.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88

99
use Magento\Framework\Exception\LocalizedException;
1010

11+
/**
12+
* @api
13+
*/
1114
class ColumnNotFoundException extends LocalizedException
1215
{
1316

app/code/Magento/OfflineShipping/Model/ResourceModel/Carrier/Tablerate/CSV/RowException.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88

99
use Magento\Framework\Exception\LocalizedException;
1010

11+
/**
12+
* @api
13+
*/
1114
class RowException extends LocalizedException
1215
{
1316
}

app/code/Magento/Paypal/Model/Api/ProcessableException.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
use Magento\Framework\Exception\LocalizedException;
1212
use Magento\Framework\Phrase;
1313

14+
/**
15+
* @api
16+
*/
1417
class ProcessableException extends LocalizedException
1518
{
1619
/**#@+

app/code/Magento/Sales/Exception/CouldNotInvoiceException.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
/**
1212
* Class CouldNotInvoiceException
13+
*
14+
* @api
1315
*/
1416
class CouldNotInvoiceException extends LocalizedException implements CouldNotInvoiceExceptionInterface
1517
{

0 commit comments

Comments
 (0)