blob: 40785952723b5eccd507393afccd6cec4895311a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
<?php
namespace Aws\Exception;
/**
* Represents an exception that was supplied via an EventStream.
*/
class EventStreamDataException extends \RuntimeException
{
private $errorCode;
private $errorMessage;
public function __construct($code, $message)
{
$this->errorCode = $code;
$this->errorMessage = $message;
parent::__construct($message);
}
/**
* Get the AWS error code.
*
* @return string|null Returns null if no response was received
*/
public function getAwsErrorCode()
{
return $this->errorCode;
}
/**
* Get the concise error message if any.
*
* @return string|null
*/
public function getAwsErrorMessage()
{
return $this->errorMessage;
}
}
|