ActionScheduler_WPCLI_Clean_Command::print_error()
Convert an exception into a WP CLI error.
Method of the class: ActionScheduler_WPCLI_Clean_Command{}
No Hooks.
Return
null
. Nothing (null).
Usage
// protected - for code of main (parent) or child class $result = $this->print_error( $e );
- $e(Exception) (required)
- The error object.
ActionScheduler_WPCLI_Clean_Command::print_error() ActionScheduler WPCLI Clean Command::print error code WC 9.2.3
protected function print_error( Exception $e ) { WP_CLI::error( sprintf( /* translators: %s refers to the exception error message */ __( 'There was an error deleting an action: %s', 'woocommerce' ), $e->getMessage() ) ); }