PluginProbe ʕ •ᴥ•ʔ
Transferito: WP Migration / trunk
Transferito: WP Migration vtrunk
trunk 11.4.0 12.0.0 13.1.0 14.0.0 14.0.11 14.0.7 14.1.0 14.1.1 14.1.2 14.1.3 14.1.4
transferito / vendor / aws / aws-sdk-php / src / Exception / EventStreamDataException.php
transferito / vendor / aws / aws-sdk-php / src / Exception Last commit date
AwsException.php 10 months ago CommonRuntimeException.php 10 months ago CouldNotCreateChecksumException.php 10 months ago CredentialsException.php 10 months ago CryptoException.php 10 months ago CryptoPolyfillException.php 10 months ago EventStreamDataException.php 10 months ago IncalculablePayloadException.php 10 months ago InvalidJsonException.php 10 months ago InvalidRegionException.php 10 months ago MultipartUploadException.php 10 months ago TokenException.php 10 months ago UnresolvedApiException.php 10 months ago UnresolvedEndpointException.php 10 months ago UnresolvedSignatureException.php 10 months ago
EventStreamDataException.php
39 lines
1 <?php
2 namespace Aws\Exception;
3
4 /**
5 * Represents an exception that was supplied via an EventStream.
6 */
7 class EventStreamDataException extends \RuntimeException
8 {
9 private $errorCode;
10 private $errorMessage;
11
12 public function __construct($code, $message)
13 {
14 $this->errorCode = $code;
15 $this->errorMessage = $message;
16 parent::__construct($message);
17 }
18
19 /**
20 * Get the AWS error code.
21 *
22 * @return string|null Returns null if no response was received
23 */
24 public function getAwsErrorCode()
25 {
26 return $this->errorCode;
27 }
28
29 /**
30 * Get the concise error message if any.
31 *
32 * @return string|null
33 */
34 public function getAwsErrorMessage()
35 {
36 return $this->errorMessage;
37 }
38 }
39