TULGAR PHP Exception
The controller file does not exist in the system.

Handler.php 81 C:\Server\htdocs\cst\public\System\Base\System\Handler.php

App.php 230 C:\Server\htdocs\cst\public\System\Base\Framework\App.php
Bootstrap.php 128 C:\Server\htdocs\cst\public\System\Base\Framework\Bootstrap.php
index.php 60 C:\Server\htdocs\cst\public\index.php
<?php

/**
 * The Handler class is responsible for managing custom error handling within the system.
 * It provides methods to throw specific errors, handle exceptions, and manage PDOExceptions.
 */

namespace Mavera;

use /**
 * CustomException is a base exception class for handling application-specific exceptions.
 *
 * This class extends the base PHP Exception class and can be used to define
 * custom error codes, messages, and behaviors for exceptions specific to the application logic.
 */
    Exception;
use /**
 * Represents an exception thrown by the PDO extension.
 *
 * The PDOException class provides information about errors that occur
 * during the operation of PDO methods, such as database connection failures
 * or query errors. Typically, it contains the error message and the error code,
 * which can be used to debug issues related to database interactions.
 *
 * The exception can also include a `previous` exception if chaining is used,
 * providing a stack trace of the root cause of the error.
 *
 * It extends the `Exception` class, meaning it inherits standard exception
 * functionality and can be caught and handled like other exceptions in PHP.
 */
    PDOException;
use /**
 * Interface Throwable
 *
 * Represents errors and exceptions in PHP. Every exception or error implements this interface,
 * which allows them to be treated in a consistent manner. Throwable encompasses both
 * Error and Exception, providing shared methods for dealing with these runtime conditions.
 *
 * Methods within this interface provide information about the error or exception,
 * including messages, codes, and stack traces.
 *
 * Implementations:
 * - Exception
 * - Error
 *
 * Key Characteristics:
 * - Throwable objects are caught using try...catch blocks.
 * - It facilitates debugging and logging by providing detailed context for the error or
 *   exception state.
 */
    Throwable;

/**
 * Class Handler
 *
 * Provides methods to handle and throw exceptions based on predefined error codes or custom exceptions.
 */
class Handler
{
    private static array $errors = [
        3000 => "The controller file does not exist in the system.",
        3001 => "The controller class is not defined.",
        3002 => "Method does not exist.",
        3003 => "The parameters sent do not comply with this method.",
        3004 => "The gateway controller did not allow access.",
        3005 => "View render file not found.",
        3006 => "There is no middleware file.",
        3007 => "Middleware class is faulty.",
        3008 => "Middleware handle function does not exist.",
        3009 => "Request method is not appropriate.",

        6001 => "Critical Log file cannot be created. Contact the system administrator!",
        6002 => "Critical Log file cannot be opened. Contact the system administrator!",

        7001 => "Invalid definition in route setting.",

    ];

    static function e(int $code, string $extra = null)
    {
        throw new Exception(trim((self::$errors[$code] ?? ($extra === null ? "An Unexpected Error" : '')) . " " . $extra), $code);
    }

    static function catch(Throwable $th)
    {
        throw new Exception($th->getMessage(), $th->getCode(), $th);
    }

    static function catch_pdo_exception(PDOException $e)
    {
        throw $e;
    }
}

Loaded PHP Extensions 43 Extension

[Core] [PDO] [Phar] [Reflection] [SPL] [SimpleXML] [apache2handler] [bcmath] [bz2] [calendar] [ctype] [curl] [date] [dom] [exif] [fileinfo] [filter] [ftp] [gd] [gettext] [hash] [iconv] [intl] [json] [libxml] [mbstring] [mysqli] [mysqlnd] [openssl] [pcre] [pdo_mysql] [pdo_sqlite] [pdo_sqlsrv] [random] [readline] [session] [sqlsrv] [standard] [tokenizer] [xml] [xmlreader] [xmlwriter] [zlib]

Request Data

# Key Value
1 q sitemap.xml
# Key Value
There is no data here.
# Key Value
There is no data here.

Server Info HTTP 200

PHP_SELF /index.php
argv EMPTY
argc EMPTY
GATEWAY_INTERFACE CGI/1.1
SERVER_ADDR 212.16.87.27
SERVER_NAME Show Detail
SERVER_SOFTWARE Show Detail
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
REQUEST_TIME 1772389566
REQUEST_TIME_FLOAT 1772389566.3773
QUERY_STRING q=sitemap.xml
DOCUMENT_ROOT Show Detail
HTTP_ACCEPT */*
HTTP_ACCEPT_CHARSET EMPTY
HTTP_ACCEPT_ENCODING Show Detail
HTTP_ACCEPT_LANGUAGE EMPTY
HTTP_CONNECTION EMPTY
HTTP_HOST Show Detail
HTTP_REFERER EMPTY
HTTP_USER_AGENT Show Detail
HTTPS on
REMOTE_ADDR 216.73.216.158
REMOTE_HOST EMPTY
REMOTE_PORT 46619
REMOTE_USER EMPTY
REDIRECT_REMOTE_USER EMPTY
SCRIPT_FILENAME Show Detail
SERVER_ADMIN Show Detail
SERVER_PORT 443
SERVER_SIGNATURE Show Detail
PATH_TRANSLATED EMPTY
SCRIPT_NAME /index.php
REQUEST_URI /sitemap.xml
PHP_AUTH_DIGEST EMPTY
PHP_AUTH_USER EMPTY
PHP_AUTH_PW EMPTY
AUTH_TYPE EMPTY
PATH_INFO EMPTY
ORIG_PATH_INFO EMPTY
OS Windows NT WIN-F8RU4OUQHT2 10.0 build 20348 (Windows Server 2022) AMD64
PEAR_INSTALL_DIR C:\php\pear
PEAR_EXTENSION_DIR C:\php\ext
PHP_EXTENSION_DIR C:\php\ext