HEX
Server: Apache
System: Linux webm006.cluster111.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: perditaeyz (838589)
PHP: 7.3.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/p/e/r/perditaeyz/www/wp-content/plugins/better-wp-security/core/Exception/WP_Error.php
<?php

namespace iThemesSecurity\Exception;

class WP_Error extends \Exception implements Exception {

	/** @var \WP_Error */
	private $error;

	public function __construct( \WP_Error $error, \Exception $previous = null ) {
		$this->error = $error;
		parent::__construct( wp_sprintf( '%l', $error->get_error_messages() ), 0, $previous );
	}

	/**
	 * Create a WP Error instance from an error code and message.
	 *
	 * @param string $code
	 * @param string $message
	 * @param array  $data
	 *
	 * @return static
	 */
	public static function from_code( $code, $message, array $data = [] ) {
		return new static( new \WP_Error( $code, $message, $data ) );
	}

	/**
	 * Get the WP Error instance.
	 *
	 * @return \WP_Error
	 */
	public function get_error() {
		return $this->error;
	}
}