PluginProbe ʕ •ᴥ•ʔ
Hostinger Reach – AI-Powered Email Marketing for WordPress / 1.7.0
Hostinger Reach – AI-Powered Email Marketing for WordPress v1.7.0
1.7.2 1.7.1 1.7.0 1.6.0 1.5.9 1.5.8 1.5.7 1.5.6 1.5.5 1.5.4 1.5.3 1.5.2 1.5.1 1.5.0 1.4.12 1.4.11 1.4.10 1.4.9 1.4.8 1.4.7 trunk 1.0.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6
hostinger-reach / vendor / woocommerce / action-scheduler / classes / ActionScheduler_InvalidActionException.php
hostinger-reach / vendor / woocommerce / action-scheduler / classes Last commit date
WP_CLI 9 months ago abstracts 9 months ago actions 9 months ago data-stores 9 months ago migration 9 months ago schedules 9 months ago schema 9 months ago ActionScheduler_ActionClaim.php 9 months ago ActionScheduler_ActionFactory.php 9 months ago ActionScheduler_AdminView.php 9 months ago ActionScheduler_AsyncRequest_QueueRunner.php 9 months ago ActionScheduler_Compatibility.php 9 months ago ActionScheduler_DataController.php 9 months ago ActionScheduler_DateTime.php 9 months ago ActionScheduler_Exception.php 9 months ago ActionScheduler_FatalErrorMonitor.php 9 months ago ActionScheduler_InvalidActionException.php 9 months ago ActionScheduler_ListTable.php 9 months ago ActionScheduler_LogEntry.php 9 months ago ActionScheduler_NullLogEntry.php 9 months ago ActionScheduler_OptionLock.php 9 months ago ActionScheduler_QueueCleaner.php 9 months ago ActionScheduler_QueueRunner.php 9 months ago ActionScheduler_RecurringActionScheduler.php 9 months ago ActionScheduler_SystemInformation.php 9 months ago ActionScheduler_Versions.php 9 months ago ActionScheduler_WPCommentCleaner.php 9 months ago ActionScheduler_wcSystemStatus.php 9 months ago
ActionScheduler_InvalidActionException.php
48 lines
1 <?php
2
3 /**
4 * InvalidAction Exception.
5 *
6 * Used for identifying actions that are invalid in some way.
7 *
8 * @package ActionScheduler
9 */
10 class ActionScheduler_InvalidActionException extends \InvalidArgumentException implements ActionScheduler_Exception {
11
12 /**
13 * Create a new exception when the action's schedule cannot be fetched.
14 *
15 * @param string $action_id The action ID with bad args.
16 * @param mixed $schedule Passed schedule.
17 * @return static
18 */
19 public static function from_schedule( $action_id, $schedule ) {
20 $message = sprintf(
21 /* translators: 1: action ID 2: schedule */
22 __( 'Action [%1$s] has an invalid schedule: %2$s', 'action-scheduler' ),
23 $action_id,
24 var_export( $schedule, true ) // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_var_export
25 );
26
27 return new static( $message );
28 }
29
30 /**
31 * Create a new exception when the action's args cannot be decoded to an array.
32 *
33 * @param string $action_id The action ID with bad args.
34 * @param mixed $args Passed arguments.
35 * @return static
36 */
37 public static function from_decoding_args( $action_id, $args = array() ) {
38 $message = sprintf(
39 /* translators: 1: action ID 2: arguments */
40 __( 'Action [%1$s] has invalid arguments. It cannot be JSON decoded to an array. $args = %2$s', 'action-scheduler' ),
41 $action_id,
42 var_export( $args, true ) // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_var_export
43 );
44
45 return new static( $message );
46 }
47 }
48