A documentation section has been added to the admin panel.
This commit is contained in:
19
app/application/app/Exceptions/Services/ServiceException.php
Normal file
19
app/application/app/Exceptions/Services/ServiceException.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php declare(strict_types=1);
|
||||
|
||||
namespace App\Exceptions\Services;
|
||||
|
||||
use App\Contracts\ServiceResultError as ServiceResultErrorContract;
|
||||
|
||||
final class ServiceException extends \Exception
|
||||
{
|
||||
public function __construct(
|
||||
private readonly ServiceResultErrorContract $serviceResultError
|
||||
) {
|
||||
parent::__construct($this->serviceResultError->getMessage());
|
||||
}
|
||||
|
||||
public function getServiceResultError(): ServiceResultErrorContract
|
||||
{
|
||||
return $this->serviceResultError;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user