PluginProbe ʕ •ᴥ•ʔ
Pods – Custom Content Types and Fields / 2.9.19.4
Pods – Custom Content Types and Fields v2.9.19.4
2.7.31.4 2.8.23.5 2.9.19.5 3.0.10.5 3.1.4.3 3.2.8.4 3.3.9.2 2.8.23.4 2.9.19.4 3.0.10.4 3.1.4.2 3.2.8.3 3.3.9.1 trunk 1.14.8 2.7.31.3 2.8.23.3 2.9.19.3 3.0.10.3 3.1.4.1 3.2.0 3.2.1 3.2.1.1 3.2.2 3.2.4 3.2.5 3.2.6 3.2.7 3.2.7.1 3.2.8 3.2.8.1 3.2.8.2 3.3.0 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9
pods / tribe-common / src / Tribe / Repository / Void_Query_Exception.php
pods / tribe-common / src / Tribe / Repository Last commit date
Core_Read_Interface.php 2 weeks ago Decorator.php 2 weeks ago Filter_Validation.php 2 weeks ago Formatter_Interface.php 2 weeks ago Implementation_Error.php 2 weeks ago Interface.php 2 weeks ago Query_Filters.php 2 weeks ago Read_Interface.php 2 weeks ago Setter_Interface.php 2 weeks ago Update_Interface.php 2 weeks ago Usage_Error.php 2 weeks ago Void_Query_Exception.php 2 weeks ago
Void_Query_Exception.php
28 lines
1 <?php
2
3 /**
4 * Class Tribe__Repository__Void_Query_Exception
5 *
6 * Thrown to indicate that a query would yield no results in read, write, delete or update operations.
7 *
8 * Repository implementations should handle this exception gracefully as
9 * a signal, not an error.
10 *
11 * @since 4.7.19
12 */
13 class Tribe__Repository__Void_Query_Exception extends Exception {
14
15 /**
16 * Indicates that query would yield no results.
17 *
18 * @since 4.7.19
19 *
20 * @param string $reason
21 *
22 * @return Tribe__Repository__Void_Query_Exception
23 */
24 public static function because_the_query_would_yield_no_results( $reason ) {
25 return new self( "The query would yield no results due to {$reason}, this exception should be handled" );
26 }
27 }
28