whoami7 - Manager
:
/
home
/
kckglobal
/
www
/
portal
/
vendor
/
phpro
/
grumphp
/
src
/
Exception
/
Upload File:
files >> /home/kckglobal/www/portal/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())); } }
Copyright ©2021 || Defacer Indonesia