Spaces:
Running
Running
feat(membership): admin-driven account creation, real estate tier/investment work, in-progress monorepo migration state
b2dcf0f | namespace App\Shared\Exceptions; | |
| use RuntimeException; | |
| class ApiException extends RuntimeException | |
| { | |
| public function __construct( | |
| private readonly string $apiCode, | |
| string $message, | |
| private readonly array $details = [], | |
| private readonly int $status = 400, | |
| ) { | |
| parent::__construct($message); | |
| } | |
| public function apiCode(): string | |
| { | |
| return $this->apiCode; | |
| } | |
| public function details(): array | |
| { | |
| return $this->details; | |
| } | |
| public function status(): int | |
| { | |
| return $this->status; | |
| } | |
| } | |