ok
Direktori : /home2/selectio/public_html/fms-worksuite/vendor/phpro/grumphp/src/Exception/ |
Current File : /home2/selectio/public_html/fms-worksuite/vendor/phpro/grumphp/src/Exception/RuntimeException.php |
<?php declare(strict_types=1); namespace GrumPHP\Exception; use Exception; use GrumPHP\Task\TaskInterface; use RuntimeException as BaseRuntimeException; class RuntimeException extends BaseRuntimeException implements ExceptionInterface { public static function fromAnyException(Exception $e): self { return new self($e->getMessage(), (int)$e->getCode(), $e); } public static function invalidTaskReturnType(TaskInterface $task): self { return new self(sprintf('The %s task did not return a TaskResult.', $task->getConfig()->getName())); } }