mirror of
https://github.com/SociallyDev/Spaces-API.git
synced 2025-07-15 01:23:01 -07:00
* Simplifies & beautifies everything * Introduces a new Class system. * Errors are defaulted to AWS's handler. * New function names & more efficient handling. * Should fix a majority of the errors. Please read the README for more!
38 lines
783 B
PHP
38 lines
783 B
PHP
<?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;
|
|
}
|
|
}
|