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'
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, ) ); }
Changelog Changelog
Version | Description |
---|---|
3.7.0 | Introduced. |