PHP 8.2.31
Preview: ValidationException.php Size: 553 B
/home/nshryvcy/himaltourism.com/wp-content/plugins/mailpoet/lib/Validator/ValidationException.php

<?php declare(strict_types = 1);

namespace MailPoet\Validator;

if (!defined('ABSPATH')) exit;


use MailPoet\UnexpectedValueException;
use WP_Error;

class ValidationException extends UnexpectedValueException {
  /** @var WP_Error */
  protected $wpError;

  public static function createFromWpError(WP_Error $wpError): self {
    $exception = self::create()
      ->withMessage($wpError->get_error_message());
    $exception->wpError = $wpError;
    return $exception;
  }

  public function getWpError(): WP_Error {
    return $this->wpError;
  }
}

Directory Contents

Dirs: 1 × Files: 5

Name Size Perms Modified Actions
Schema DIR
- drwxr-xr-x 2023-04-04 05:35:40
Edit Download
1.66 KB lrw-r--r-- 2023-04-04 05:35:40
Edit Download
0 B lrw-r--r-- 2023-04-04 05:35:40
Edit Download
2.68 KB lrw-r--r-- 2023-04-04 05:35:40
Edit Download
553 B lrw-r--r-- 2023-04-04 05:35:40
Edit Download
6.86 KB lrw-r--r-- 2023-04-04 05:35:40
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).