Refactored Exceptions
This commit is contained in:
parent
ffdaaebfbc
commit
db47d0fc0e
8 changed files with 67 additions and 14 deletions
18
src/TamerLib/Exceptions/WorkerFailedException.php
Normal file
18
src/TamerLib/Exceptions/WorkerFailedException.php
Normal file
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
|
||||
namespace TamerLib\Exceptions;
|
||||
|
||||
use Exception;
|
||||
use Throwable;
|
||||
|
||||
class WorkerFailedException extends Exception
|
||||
{
|
||||
/**
|
||||
* @param string $message
|
||||
* @param Throwable|null $previous
|
||||
*/
|
||||
public function __construct(string $message = "", ?Throwable $previous = null)
|
||||
{
|
||||
parent::__construct($message, ($previous ? $previous->getCode() : 0), $previous);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue