automatewoo/includes/Workflows/Presets/Storage/StorageException.php
fei-source 47d3c9a8b6 Update to v6.2.2
Source: GrootMade/Festinger Vault
2026-03-15 08:31:15 +08:00

23 lines
573 B
PHP

<?php
namespace AutomateWoo\Workflows\Presets\Storage;
use AutomateWoo\Exceptions\Exception as ExceptionInterface;
/**
* @class StorageException used in preset storage
* @since 5.1.0
*/
class StorageException extends \Exception implements ExceptionInterface {
/**
* Create a new exception when a given preset name does not exist.
*
* @param string $name
*
* @return static
*/
public static function preset_does_not_exist( string $name ): StorageException {
return new static( sprintf( 'The preset with the name "%s" does not exist.', $name ) );
}
}