WC_Abstract_Order::get_last_save_error │ public │ WC 11.2.2

Get the exception that stopped the last save(). save() logs that exception and does not throw it.

Method of the class: WC_Abstract_Order{}

No Hooks.

Returns

Exception|null. The exception, or null when the last save() wrote the order.

Usage

$WC_Abstract_Order = new WC_Abstract_Order();
$WC_Abstract_Order->get_last_save_error(): ?Exception;

Changelog

Since 11.2.2 Introduced.

WC_Abstract_Order::get_last_save_error() code WC 11.2.2

public function get_last_save_error(): ?Exception {
	return $this->last_save_error;
}