Skip to content

The only tool you need to know what is happening and how to fix it.

297 B
Raw Blame
<?php

namespace App\Exception;

class CustomException extends \RuntimeException
{
    public function __construct(
        int $code,
        string $message,
        ?\Throwable $previous = null,
    ) {
        parent::__construct("CustomException[$code]: $message", $code, $previous);
    }
}