関数
AmazonGenericError::__construct( int|string $errorcode, string $errorname, int $httpcode, callable|string $debugmsg, callable|string $message, callable|string $adminmsg, mixed $logger, array $apiresult )
パラメータ パラメータ
- $errorcode
(数値|文字列) (必須) Any number|string representing an error code.
- $errorname
(文字列) (必須) Name of the error.
- $httpcode
(数値) (必須) The HTTP code of the error
- $debugmsg
(callable|文字列) (必須) A string message, or callable that constructs a message and takes any number of arguments. The debug message is for developers and should not be shown to end users.
- $message
(callable|文字列) (必須) A string message, or callable that constructs a message and takes any number of arguments. This message should be a user facing message and should not contain debug information.
- $adminmsg
(callable|文字列) (必須) A string message, or callable that constructs a message and takes any number of arguments. This message should be an admin facing message. Default: empty string
- $logger
(mixed) (必須) Logger object
- $apiresult
(配列) (必須) A raw result object returned by an Amazon API call
ファイル: src/Errors/AmazonGenericError.php
public function __construct(
$errorcode,
$errorname,
$httpcode,
$debugmsg,
$message,
$adminmsg,
$logger,
$apiresult
) {
$this->errorcode = $errorcode;
$this->errorname = $errorname;
$this->httpcode = $httpcode;
$this->debugmsg = $debugmsg;
$this->message = $message;
$this->adminmsg = $adminmsg;
$this->logger = $logger;
$this->apiresult = $apiresult;
}