Files
Claudecio Martins a951944997 first commit
2026-06-16 10:04:10 -03:00

17 lines
444 B
PHP

<?php
namespace WorkbloomERP\Exceptions;
use Exception;
use Throwable;
class AppException extends Exception {
protected array $details = [];
public function __construct(string $message, int $code = 500, array $details = [], ?Throwable $previous = null) {
parent::__construct($message, $code, $previous);
$this->details = $details;
}
public function getDetails(): array {
return $this->details;
}
}