| @@ 1282-1296 (lines=15) @@ | ||
| 1279 | * |
|
| 1280 | * @return array |
|
| 1281 | */ |
|
| 1282 | public function provideSdkExceptions() |
|
| 1283 | { |
|
| 1284 | $invalidPayload = '\eBayEnterprise\RetailOrderManagement\Payload\Exception\InvalidPayload'; |
|
| 1285 | $networkError = '\eBayEnterprise\RetailOrderManagement\Api\Exception\NetworkError'; |
|
| 1286 | $unsupportedOperation = '\eBayEnterprise\RetailOrderManagement\Api\Exception\UnsupportedOperation'; |
|
| 1287 | $unsupportedHttpAction = '\eBayEnterprise\RetailOrderManagement\Api\Exception\UnsupportedHttpAction'; |
|
| 1288 | $baseException = 'Exception'; |
|
| 1289 | return [ |
|
| 1290 | [$invalidPayload, $invalidPayload], |
|
| 1291 | [$networkError, null], |
|
| 1292 | [$unsupportedOperation, $unsupportedOperation], |
|
| 1293 | [$unsupportedHttpAction, $unsupportedHttpAction], |
|
| 1294 | [$baseException, $baseException], |
|
| 1295 | ]; |
|
| 1296 | } |
|
| 1297 | ||
| 1298 | /** |
|
| 1299 | * GIVEN An <sdkApi> that will thrown an <exception> of <exceptionType> when making a request. |
|
| @@ 505-520 (lines=16) @@ | ||
| 502 | * |
|
| 503 | * @return array |
|
| 504 | */ |
|
| 505 | public function provideSdkExceptions() |
|
| 506 | { |
|
| 507 | $invalidPayload = '\eBayEnterprise\RetailOrderManagement\Payload\Exception\InvalidPayload'; |
|
| 508 | $networkError = '\eBayEnterprise\RetailOrderManagement\Api\Exception\NetworkError'; |
|
| 509 | $unsupportedOperation = '\eBayEnterprise\RetailOrderManagement\Api\Exception\UnsupportedOperation'; |
|
| 510 | $unsupportedHttpAction = '\eBayEnterprise\RetailOrderManagement\Api\Exception\UnsupportedHttpAction'; |
|
| 511 | $baseException = 'Exception'; |
|
| 512 | $creditCardException = 'EbayEnterprise_CreditCard_Exception'; |
|
| 513 | return [ |
|
| 514 | [$invalidPayload, $creditCardException], |
|
| 515 | [$networkError, $creditCardException], |
|
| 516 | [$unsupportedOperation, $unsupportedOperation], |
|
| 517 | [$unsupportedHttpAction, $unsupportedHttpAction], |
|
| 518 | [$baseException, $baseException], |
|
| 519 | ]; |
|
| 520 | } |
|
| 521 | ||
| 522 | /** |
|
| 523 | * GIVEN An <api> that will thrown an <exception> of <exceptionType> when making a request. |
|
| @@ 373-388 (lines=16) @@ | ||
| 370 | * provide sdk exceptions to throw |
|
| 371 | * @return array |
|
| 372 | */ |
|
| 373 | public function provideSdkExceptions() |
|
| 374 | { |
|
| 375 | $invalidPayload = '\eBayEnterprise\RetailOrderManagement\Payload\Exception\InvalidPayload'; |
|
| 376 | $networkError = '\eBayEnterprise\RetailOrderManagement\Api\Exception\NetworkError'; |
|
| 377 | $unsupportedOperation = '\eBayEnterprise\RetailOrderManagement\Api\Exception\UnsupportedOperation'; |
|
| 378 | $unsupportedHttpAction = '\eBayEnterprise\RetailOrderManagement\Api\Exception\UnsupportedHttpAction'; |
|
| 379 | $baseException = 'Exception'; |
|
| 380 | $paypalException = 'EbayEnterprise_PayPal_Exception'; |
|
| 381 | return [ |
|
| 382 | [$invalidPayload, $paypalException], |
|
| 383 | [$networkError, $paypalException], |
|
| 384 | [$unsupportedOperation, $unsupportedOperation], |
|
| 385 | [$unsupportedHttpAction, $unsupportedHttpAction], |
|
| 386 | [$baseException, $baseException], |
|
| 387 | ]; |
|
| 388 | } |
|
| 389 | ||
| 390 | /** |
|
| 391 | * GIVEN An <sdk> that will thrown an <exception> of <exceptionType> when making a request. |
|
| @@ 87-102 (lines=16) @@ | ||
| 84 | * |
|
| 85 | * @return array |
|
| 86 | */ |
|
| 87 | public function provideSdkExceptions() |
|
| 88 | { |
|
| 89 | $invalidPayload = '\eBayEnterprise\RetailOrderManagement\Payload\Exception\InvalidPayload'; |
|
| 90 | $networkError = '\eBayEnterprise\RetailOrderManagement\Api\Exception\NetworkError'; |
|
| 91 | $unsupportedOperation = '\eBayEnterprise\RetailOrderManagement\Api\Exception\UnsupportedOperation'; |
|
| 92 | $unsupportedHttpAction = '\eBayEnterprise\RetailOrderManagement\Api\Exception\UnsupportedHttpAction'; |
|
| 93 | $baseException = 'Exception'; |
|
| 94 | $taxCollectionException = 'EbayEnterprise_Tax_Exception_Collector_Exception'; |
|
| 95 | return [ |
|
| 96 | [$invalidPayload, $taxCollectionException], |
|
| 97 | [$networkError, $taxCollectionException], |
|
| 98 | [$unsupportedOperation, $taxCollectionException], |
|
| 99 | [$unsupportedHttpAction, $taxCollectionException], |
|
| 100 | [$baseException, $taxCollectionException], |
|
| 101 | ]; |
|
| 102 | } |
|
| 103 | ||
| 104 | /** |
|
| 105 | * GIVEN An <api> that will thrown an <exception> of <exceptionType> when making a request. |
|