All checks were successful
Build, Push and Deploy / build-and-push (push) Successful in 3m3s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 16s
Build, Push and Deploy / deploy-staging (push) Successful in 32s
Build, Push and Deploy / deploy-production (push) Has been skipped
Build, Push and Deploy / cleanup (push) Successful in 1s
39 lines
783 B
PHP
39 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;
|
|
}
|
|
}
|