✏️ 编辑:AuthValidationException.php
路径:
/home/forge/woocommerce-square/vendor/apimatic/core/src/Exceptions/AuthValidationException.php
大小:632 B · 修改:2025-12-23 20:26:26 · 权限:0644 · 可写
← 返回目录
👁 查看
⬇ 下载
<?php declare(strict_types=1); namespace Core\Exceptions; use InvalidArgumentException; /** * Authentication Validation Exception. */ class AuthValidationException extends InvalidArgumentException { private const ERROR_MESSAGE_PREFIX = "Following authentication credentials are required:\n-> "; /** * Initialize a new instance of AuthValidationException * * @param string[] $errors An array of errors in authentication validation */ public static function init(array $errors): AuthValidationException { return new self(self::ERROR_MESSAGE_PREFIX . join("\n-> ", $errors)); } }
💾 保存
取消
保存为 UTF-8,换行统一为 LF