支付宝记账本
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

5 months ago
  1. <?php
  2. namespace App\Libs;
  3. use Exception;
  4. class AppException extends Exception
  5. {
  6. public ?string $payload;
  7. public function __construct(string $message = '', int $code = 500, string $payload = null)
  8. {
  9. parent::__construct($message, $code);
  10. $this->payload = $payload;
  11. }
  12. public function getPayload(): ?string
  13. {
  14. return $this->payload;
  15. }
  16. }