PluginProbe
Media Cloud Sync / 1.2.2
Media Cloud Sync v1.2.2
1.4.1 1.4.0 1.3.12 1.3.11 1.3.10 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.2.0 1.2.10 1.2.11 1.2.12 1.2.13 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 All 35 releases
media-cloud-sync / includes / sdk / s3 / Aws / Api / Parser / Exception / ParserException.php

ParserException.php in Media Cloud Sync 1.2.2, at includes/sdk/s3/Aws/Api/Parser/Exception/ParserException.php

50 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Dudlewebs\WPMCS\s3\Aws\Api\Parser\Exception;
4
5 use Dudlewebs\WPMCS\s3\Aws\HasMonitoringEventsTrait;
6 use Dudlewebs\WPMCS\s3\Aws\MonitoringEventsInterface;
7 use Dudlewebs\WPMCS\s3\Aws\ResponseContainerInterface;
8 use Dudlewebs\WPMCS\s3\Psr\Http\Message\ResponseInterface;
9 class ParserException extends \RuntimeException implements MonitoringEventsInterface, ResponseContainerInterface
10 {
11 use HasMonitoringEventsTrait;
12 private $errorCode;
13 private $requestId;
14 private $response;
15 public function __construct($message = '', $code = 0, $previous = null, array $context = [])
16 {
17 $this->errorCode = isset($context['error_code']) ? $context['error_code'] : null;
18 $this->requestId = isset($context['request_id']) ? $context['request_id'] : null;
19 $this->response = isset($context['response']) ? $context['response'] : null;
20 parent::__construct($message, $code, $previous);
21 }
22 /**
23 * Get the error code, if any.
24 *
25 * @return string|null
26 */
27 public function getErrorCode()
28 {
29 return $this->errorCode;
30 }
31 /**
32 * Get the request ID, if any.
33 *
34 * @return string|null
35 */
36 public function getRequestId()
37 {
38 return $this->requestId;
39 }
40 /**
41 * Get the received HTTP response if any.
42 *
43 * @return ResponseInterface|null
44 */
45 public function getResponse()
46 {
47 return $this->response;
48 }
49 }
50