Automattic\WooCommerce\EmailEditor\Engine\Renderer
Html2Text_Exception{}
Exception thrown when HTML to text conversion fails
Хуков нет.
Использование
$Html2Text_Exception = new Html2Text_Exception(); // use class methods
Методы
Код Html2Text_Exception{} 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;
}
}