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