Automattic\WooCommerce\EmailEditor\Engine\Renderer

Html2Text_Exception{}WC 1.0

Exception thrown when HTML to text conversion fails

Хуков нет.

Использование

$Html2Text_Exception = new Html2Text_Exception();
// use class methods

Методы

  1. public __construct( string $message = '', string $more_info = '' )
  2. public get_more_info()

Код Html2Text_Exception{} WC 10.8.1

class Html2Text_Exception extends \Exception {
	/**
	 * Additional information about the error
	 *
	 * @var string
	 */
	private string $more_info;

	/**
	 * Constructor
	 *
	 * @param string $message Error message.
	 * @param string $more_info Additional error information.
	 */
	public function __construct( string $message = '', string $more_info = '' ) {
		parent::__construct( $message );
		$this->more_info = $more_info;
	}

	/**
	 * Returns additional error information
	 *
	 * @return string Additional error information.
	 */
	public function get_more_info(): string {
		return $this->more_info;
	}
}