Skip to content

Internals Runtime Exceptions RuntimeException

Stefan Crkvenjakov edited this page Oct 7, 2026 · 1 revision

runtime\exceptions\RuntimeException

Framework Internals · Subsystem overview · Developer guide

Source: awt_src/classes/runtime/exceptions/RuntimeException.php · Snapshot 8411f4287706.

Runtime state, package API classes, loader, executor and orchestrator have separate responsibilities. Dependency validation precedes package code and nested execution restores context.

Imports and dependencies

use runtime\enums\ERuntimeExceptionsMessage;

RuntimeException

Declaration and architectural role

class RuntimeException extends \RuntimeException

Source description (behavioral corrections are recorded in Known discrepancies):

Diagnostics can be raised before a package context exists.

Constants, enum cases, traits and properties

Declarations below preserve visibility, type, default and modifiers exactly. A typed property without an initializer remains uninitialized until its constructor or another method assigns it. Mutable fields belong to this instance unless marked static; readonly fields can be initialized once. Constructor-promoted properties are also listed below.

Member Declaration Purpose or source contract
Constructor-promoted public function __construct(string|ERuntimeExceptionsMessage $message Initialized from the constructor argument; default expression is evaluated when the argument is omitted.

Method index

Method Signature
__construct public function __construct(string|ERuntimeExceptionsMessage $message, ?\Throwable $previous = null)

__construct

Source line 9

public function __construct(string|ERuntimeExceptionsMessage $message, ?\Throwable $previous = null)

Parameters

Parameter Type, modifiers and default Purpose
$message string|ERuntimeExceptionsMessage $message Response or exception message text.
$previous ?\Throwable $previous = null Operation input; the exact use, validation and propagation are shown in the implementation trace.

Computes or delegates the operation shown below; no explicit receiver property assignment or throw occurs in this method.

Implementation, validation guards and interaction order
public function __construct(string|ERuntimeExceptionsMessage $message, ?\Throwable $previous = null)
    {
        parent::__construct($message instanceof ERuntimeExceptionsMessage ? $message->value : $message, 0, $previous);
    }

Related types

Clone this wiki locally