for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* YIKES Inc. Easy Mailchimp Forms Plugin.
*
* @package YIKES\EasyForms
* @author Freddie Mixell
* @license GPL2
*/
namespace YIKES\EasyForms\Exception;
* Class InvalidURI.
* @since %VERSION%
* @package YIKES\EasyForms\Exception
class InvalidURI extends \InvalidArgumentException implements Exception {
* Create a new instance of the exception for a file that is not accessible
* or not readable.
* @param string $uri URI of the file that is not accessible or not
* readable.
* @return static
public static function from_uri( $uri ) {
$message = sprintf(
'The View URI "%s" is not accessible or readable.',
$uri
);
return new static( $message );
}
* Create a new instance of the exception for a file that is not in the list.
* @param string $uri The invalid URI.
* @param array $list The list of valid URIs.
* @return InvalidURI
public static function from_list( $uri, array $list ) {
'The View URI "%1$s" is not one of the valid options: [%2$s]',
$uri,
join( ', ', $list )
* Create a new instance of the exception for a path that is invalid.
* @param string $path The path that is invalid.
public static function from_asset_path( $path ) {
'The path "%s" is not readable. Do you need to run gulp?',
$path