1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- namespace AlibabaCloud\Client\Exception;
- use Exception;
- use RuntimeException;
- /**
- * Class ClientException
- *
- * @package AlibabaCloud\Client\Exception
- */
- class ClientException extends AlibabaCloudException
- {
- /**
- * ClientException constructor.
- *
- * @param string $errorMessage
- * @param string $errorCode
- * @param Exception|null $previous
- */
- public function __construct($errorMessage, $errorCode, $previous = null)
- {
- parent::__construct($errorMessage, 0, $previous);
- $this->errorMessage = $errorMessage;
- $this->errorCode = $errorCode;
- }
- /**
- * @codeCoverageIgnore
- * @deprecated
- */
- public function getErrorType()
- {
- return 'Client';
- }
- }
|