symplely/coroutine

View on GitHub
Coroutine/Exceptions/Panic.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Async;

use Async\Panicking;

class Panic extends \Exception implements Panicking
{
  public function __construct($message = null, $code = 0, \Throwable $previous = null)
  {
    parent::__construct(\sprintf('The task has erred: %s', $message), $code, $previous);
  }
}