ÿØÿà JFIF H H ÿÛ C GIF89;
| System: Linux server378.web-hosting.com 4.18.0-553.80.1.lve.el8.x86_64 #1 SMP Wed Oct 22 19:29:36 UTC 2025 x86_64 Current Path : /home/aliyykcz/public_html/wp-content/plugins/trustpulse-api/TPAPI/ |
| Current File : /home/aliyykcz/public_html/wp-content/plugins/trustpulse-api/TPAPI/WpErrorException.php |
<?php
/**
* WP_Error Exception class migrated from OptinMonster
*
* @since 1.2.3
*
* @package TPAPI
* @author Briana OHern
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* WP_Error Exception class.
*
* @since 1.2.3
*/
class TPAPI_WpErrorException extends Exception {
/**
* The WP_Error object to this exception.
*
* @since 1.2.3
*
* @var null|WP_Error
*/
protected $wp_error = null;
/**
* Sets the WP_Error object to this exception.
*
* @since 1.2.3
*
* @param WP_Error $error The WP_Error object.
*/
public function setWpError( WP_Error $error ) {
$this->wp_error = $error;
return $this;
}
public function getWpError() {
return $this->wp_error;
}
}