first commit
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user