* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) * @link http://www.temando.com/ */ class EventProcessorException extends LocalizedException { /** * @param string $entityType * @param string $entityId * @param \Exception|null $previous * @return static */ public static function processingFailed($entityType, $entityId, \Exception $previous = null) { $phrase = __("Entity '%1' of type '%2' could not be processed.", $entityId, $entityType); return new static($phrase, $previous); } }