📁 File Manager Pro
v10.0.3 | PHP: 8.2.31
Server: LiteSpeed
2026-07-03 07:54:17
📂
/ (Root)
/
home
/
orkouolp
/
web
/
orkofarms.com
/
wp-content
/
plugins
/
woocommerce
/
packages
/
email-editor
/
src
/
Validator
📍 /home/orkouolp/web/orkofarms.com/wp-content/plugins/woocommerce/packages/email-editor/src/Validator
🔄 Refresh
✏️
Editing: class-validation-exception.php
Writable
<?php /** * This file is part of the WooCommerce Email Editor package. * * @package Automattic\WooCommerce\EmailEditor */ declare( strict_types = 1 ); namespace Automattic\WooCommerce\EmailEditor\Validator; use Automattic\WooCommerce\EmailEditor\UnexpectedValueException; use WP_Error; /** * Exception thrown when validation fails. */ class Validation_Exception extends UnexpectedValueException { /** * WP_Error instance. * * @var WP_Error */ protected $wp_error; /** * Creates a new instance of the exception. * * @param WP_Error $wp_error WP_Error instance. */ public static function create_from_wp_error( WP_Error $wp_error ): self { $exception = self::create() ->withMessage( $wp_error->get_error_message() ); $exception->wp_error = $wp_error; return $exception; } /** * Returns the WP_Error instance. */ public function get_wp_error(): WP_Error { return $this->wp_error; } }
💾 Save Changes
❌ Cancel