Debian Codegraph @

lib/3rdParty/composer/aws/aws-sdk-php/src/Exception/EventStreamDataException.php

raw symbols SCIP
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 }