Blame view

vendor/alibabacloud/client/src/Exception/AlibabaCloudException.php 1.07 KB
f0d6cde5   xu   vendor
1
2
3
4
<?php

namespace AlibabaCloud\Client\Exception;

0c34aba8   xu   更新阿里云短信接口
5
6
7
use Exception;
use RuntimeException;

f0d6cde5   xu   vendor
8
9
10
11
12
/**
 * Class AlibabaCloudException
 *
 * @package   AlibabaCloud\Client\Exception
 */
0c34aba8   xu   更新阿里云短信接口
13
abstract class AlibabaCloudException extends Exception
f0d6cde5   xu   vendor
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{

    /**
     * @var string
     */
    protected $errorCode;

    /**
     * @var string
     */
    protected $errorMessage;

    /**
     * @return string
     */
    public function getErrorCode()
    {
        return $this->errorCode;
    }

    /**
     * @codeCoverageIgnore
0c34aba8   xu   更新阿里云短信接口
36
     * @deprecated
f0d6cde5   xu   vendor
37
     */
0c34aba8   xu   更新阿里云短信接口
38
    public function setErrorCode()
f0d6cde5   xu   vendor
39
    {
0c34aba8   xu   更新阿里云短信接口
40
        throw new RuntimeException('deprecated since 2.0.');
f0d6cde5   xu   vendor
41
42
43
44
45
46
47
48
49
50
51
52
53
    }

    /**
     * @return string
     */
    public function getErrorMessage()
    {
        return $this->errorMessage;
    }

    /**
     * @codeCoverageIgnore
     *
f0d6cde5   xu   vendor
54
     * @param $errorMessage
0c34aba8   xu   更新阿里云短信接口
55
56
     *
     * @deprecated
f0d6cde5   xu   vendor
57
58
59
60
61
62
63
64
     */
    public function setErrorMessage($errorMessage)
    {
        $this->errorMessage = $errorMessage;
    }

    /**
     * @codeCoverageIgnore
0c34aba8   xu   更新阿里云短信接口
65
     * @deprecated
f0d6cde5   xu   vendor
66
67
68
69
70
     */
    public function setErrorType()
    {
    }
}