WordPress at Your Fingertips
function is not described

ActionScheduler_WPCLI_Scheduler_command::print_error() protected WC 1.0

Convert an exception into a WP CLI error.

{} It's a method of the class: ActionScheduler_WPCLI_Scheduler_command{}

No Hooks.

Return

null. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->print_error( $e );
$e(Exception) (required)
The error object.

Code of ActionScheduler_WPCLI_Scheduler_command::print_error() WC 6.1.1

protected function print_error( Exception $e ) {
	WP_CLI::error(
		sprintf(
			/* translators: %s refers to the exception error message */
			__( 'There was an error running the action scheduler: %s', 'woocommerce' ),
			$e->getMessage()
		)
	);
}