WooCommerce Code Reference

WC_REST_WCCOM_Site_Installer_Error extends Exception
in package

WCCOM Site Installer Error Class

Table of Contents

__construct()  : mixed
Constructor for the Installer Error class.
get_error_code()  : mixed
Get the error code.
get_error_message()  : mixed
Get the error message.
get_http_code()  : mixed
Get the HTTP status code.

Methods

__construct()

Constructor for the Installer Error class.

public __construct(string $error_code[, string $error_message = null ][, int $http_code = null ]) : mixed
Parameters
$error_code : string

Error code.

$error_message : string = null

Error message.

$http_code : int = null

HTTP status code.

Return values
mixed