File manager - Edit - /home/webapp69.cm.in.th/u69319090028/Shop/app/Core/Exceptions/AppException.php
Back
<?php /** * Base Application Exception */ class AppException extends Exception { protected int $statusCode = 500; protected string $errorCode = 'INTERNAL_ERROR'; protected array $context = []; public function __construct(string $message = 'เกิดข้อผิดพลาดในระบบ', int $statusCode = 500, string $errorCode = 'INTERNAL_ERROR', array $context = [], ?Throwable $previous = null) { $this->statusCode = $statusCode; $this->errorCode = $errorCode; $this->context = $context; parent::__construct($message, $statusCode, $previous); } public function getStatusCode(): int { return $this->statusCode; } public function getErrorCode(): string { return $this->errorCode; } public function getContext(): array { return $this->context; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.24 |
proxy
|
phpinfo
|
Settings