Refactored Exceptions

This commit is contained in:
Netkas 2023-06-16 00:53:26 -04:00
parent ffdaaebfbc
commit db47d0fc0e
No known key found for this signature in database
GPG key ID: 5DAF58535614062B
8 changed files with 67 additions and 14 deletions

View 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);
}
}