1: <?php
2:
3: namespace Saklient\Errors;
4:
5: require_once __DIR__ . "/../../Saklient/Errors/HttpException.php";
6: use \Saklient\Errors\HttpException;
7: require_once __DIR__ . "/../../Saklient/Util.php";
8: use \Saklient\Util;
9:
10:
11: class HttpUnauthorizedException extends HttpException {
12:
13: 14: 15: 16: 17: 18:
19: public function __construct($status, $code=null, $message="")
20: {
21: parent::__construct($status, $code, $message == null || $message == "" ? "この操作は認証が必要です。IDまたはパスワードが誤っている可能性があります。" : $message);
22: }
23:
24:
25:
26: }
27:
28: