PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home/trave494/live2news.com/wp-content/plugins/w3-total-cache/
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
IP: 209.182.202.254
Choose File :

Url:
Dir : /home/trave494/live2news.com/wp-content/plugins/w3-total-cache/Util_Environment_Exceptions.php

<?php
namespace W3TC;

class Util_Environment_Exceptions extends \Exception {
	private $exceptions;
	private $credentials_form;

	public function __construct() {
		parent::__construct();

		$this->exceptions = array();
	}

	public function push( $ex ) {
		if ( $ex instanceof Util_Environment_Exceptions ) {
			foreach ( $ex->exceptions() as $ex2 )
				$this->push( $ex2 );
		} else {
			if ( $this->credentials_form == null &&
				$ex instanceof Util_WpFile_FilesystemOperationException &&
				$ex->credentials_form() != null )
				$this->credentials_form = $ex->credentials_form();
			$this->exceptions[] = $ex;
		}
	}

	/**
	 *
	 *
	 * @return Exception[]
	 */
	public function exceptions() {
		return $this->exceptions;
	}

	public function credentials_form() {
		return $this->credentials_form;
	}

	public function getCombinedMessage() {
		$s = '';
		foreach ( $this->exceptions as $m ) {
			$s .= $m->getMessage() . "\r\n";
		}

		return $s;
	}

}