WooCommerce Code Reference

ConflictException extends UnexpectedValueException
in package
implements HttpAwareException

USE: When the main action produces conflict (i.e. duplicate key).

API: 409 Conflict

Interfaces, Classes and Traits

HttpAwareException
Provides information for converting exceptions to HTTP responses.

Table of Contents

$errors  : array<string|int, string>
__construct()  : mixed
create()  : static
getErrors()  : array<string|int, mixed>
getHttpStatusCode()  : int
withCode()  : static
withError()  : static
withErrors()  : static
withMessage()  : static

Properties

Methods

__construct()

public final __construct([string $message = '' ], int $code[, Throwable $previous = null ]) : mixed
Parameters
$message : string = ''
$code : int
$previous : Throwable = null
Return values
mixed