You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
391 B
23 lines
391 B
<?php
|
|
|
|
namespace App\Libs;
|
|
|
|
use Exception;
|
|
|
|
class AppException extends Exception
|
|
{
|
|
|
|
public ?string $payload;
|
|
|
|
public function __construct(string $message = '', int $code = 500, string $payload = null)
|
|
{
|
|
parent::__construct($message, $code);
|
|
$this->payload = $payload;
|
|
}
|
|
|
|
public function getPayload(): ?string
|
|
{
|
|
return $this->payload;
|
|
}
|
|
|
|
}
|