Initial commit

This commit is contained in:
root
2026-05-09 17:28:23 +02:00
commit 9d73f82529
5575 changed files with 281989 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
<?php
namespace App\Exceptions;
use Exception;
use Throwable;
class MigrationFailedException extends Exception
{
/**
* MigrationFailedException constructor.
*/
public function __construct(string $message = 'Migration failed', int $code = 0, ?Throwable $previous = null)
{
parent::__construct($message, $code, $previous);
}
/**
* Get the exception message with additional context
*/
public function getDetailedMessage(): string
{
return 'Migration failed: ' . $this->getMessage() . ' (Code: ' . $this->getCode() . ')';
}
/**
* Get the exception code with default
*/
public function getErrorCode(): int
{
return $this->getCode() ?: 500;
}
}