diff options
Diffstat (limited to 'vendor/aws/aws-sdk-php/src/Exception/EventStreamDataException.php')
-rw-r--r-- | vendor/aws/aws-sdk-php/src/Exception/EventStreamDataException.php | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/vendor/aws/aws-sdk-php/src/Exception/EventStreamDataException.php b/vendor/aws/aws-sdk-php/src/Exception/EventStreamDataException.php new file mode 100644 index 0000000..4078595 --- /dev/null +++ b/vendor/aws/aws-sdk-php/src/Exception/EventStreamDataException.php @@ -0,0 +1,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; + } +} |