tp TouchPointWP TouchPointWP_WPError - TenthPres/TouchPoint-WP GitHub Wiki
tp\TouchPointWP\TouchPointWP_WPError
An Exception class.
- Full name:
\tp\TouchPointWP\TouchPointWP_WPError - Parent class:
\tp\TouchPointWP\TouchPointWP_Exception
Methods
__construct
Create an exception, and log it where it can be reported to the TouchPoint-WP Developers.
public __construct(\WP_Error $wpE): mixed
Parameters:
| Parameter | Type | Description |
|---|---|---|
$wpE |
\WP_Error |
Inherited methods
__construct
Create an exception, and log it where it can be reported to the TouchPoint-WP Developers.
public __construct(string $message = "", int $code = 0, ?\Throwable $previous = null, mixed $devDetail = null): mixed
Parameters:
| Parameter | Type | Description |
|---|---|---|
$message |
string | |
$code |
int | |
$previous |
?\Throwable | |
$devDetail |
mixed |
debugLog
public static debugLog(mixed $code, mixed $file, mixed $line, mixed $message): void
- This method is static. Parameters:
| Parameter | Type | Description |
|---|---|---|
$code |
mixed | |
$file |
mixed | |
$line |
mixed | |
$message |
mixed |
toJson
Get this in a JSON-compatible format
public toJson(): string
toWpError
Convert this exception to a WP_Error object that can be passed through the WordPress API.
public toWpError(): \WP_Error