WC_Abstract_Order::handle_exception( Exception $e, string $message = 'Error' )

Log an error about this order is exception is encountered.


Description Description


Parameters Parameters

$e

(Required) Exception object.

$message

(Optional) Message regarding exception thrown.

Default value: 'Error'


Top ↑

Source Source

File: includes/abstracts/abstract-wc-order.php

	protected function handle_exception( $e, $message = 'Error' ) {
		wc_get_logger()->error(
			$message,
			array(
				'order' => $this,
				'error' => $e,
			)
		);
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.7.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.