mirror of
https://github.com/danog/parallel.git
synced 2024-12-12 09:09:35 +01:00
c7294da60d
TaskError is thrown if the exception thrown in the worker was an instance of Error.
14 lines
309 B
PHP
14 lines
309 B
PHP
<?php
|
|
|
|
namespace Amp\Parallel\Worker;
|
|
|
|
class WorkerException extends \Exception {
|
|
/**
|
|
* @param string $message
|
|
* @param \Throwable|null $previous
|
|
*/
|
|
public function __construct(string $message, \Throwable $previous = null) {
|
|
parent::__construct($message, 0, $previous);
|
|
}
|
|
}
|