Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
forbidals
/
wp-content
/
plugins
/
wpforms-lite
/
vendor_prefixed
/
apimatic
/
core
/
src
/
Exceptions
:
AuthValidationException.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php declare (strict_types=1); namespace WPForms\Vendor\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)); } }