Repository navigation
Internals Database Exceptions ProviderException
Framework Internals · Subsystem overview · Developer guide
Source: awt_src/classes/database/exceptions/ProviderException.php · Snapshot 8411f4287706.
DatabaseManager delegates SQL generation to QueryBuilder, execution to IProvider, and result caching to ICache. Schema builders use MySQL DDL and the framework table registry.
use database\interface\IProvider;
use exception\ExceptionBase;class ProviderException extends ExceptionBaseDeclarations 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 |
|---|---|---|
| $provider | private string $provider; |
Used by __construct(), buildMessage(). |
| Constructor-promoted | public function __construct(string $provider |
Initialized from the constructor argument; default expression is evaluated when the argument is omitted. |
| Method | Signature |
|---|---|
| __construct | public function __construct(string $provider, ?\Throwable $previous = null) |
| buildMessage | public function buildMessage(): string |
public function __construct(string $provider, ?\Throwable $previous = null)| Parameter | Type, modifiers and default | Purpose |
|---|---|---|
$provider |
string $provider |
Database execution collaborator; transactions require ITransactionalProvider. |
$previous |
?\Throwable $previous = null |
Operation input; the exact use, validation and propagation are shown in the implementation trace. |
State writes: $this->provider.
Implementation, validation guards and interaction order
public function __construct(string $provider, ?\Throwable $previous = null)
{
$this->provider = $provider;
parent::__construct($previous);
}public function buildMessage(): stringReturn expressions (including local callbacks): "Database error has occurred with provider {$this->provider} within {$this->context->contextName}.".
Implementation, validation guards and interaction order
public function buildMessage(): string
{
return "Database error has occurred with provider {$this->provider} within {$this->context->contextName}.";
}AWT Framework Wiki · Home · Installation Guide · Developer Guide · Framework Internals
Philosophy · Architecture · Known discrepancies · Verification
Installation Guide
Developer Guide
- Learning sequence
- First package
- Package structure
- Lifecycle
- Runtimes
- Events and objects
- Routing and controllers
- Views and resources
- Database and models
- Storage and caching
- Configuration and CLI
- Responses and errors
- Extension points
Framework Internals
- Architecture
- Bootstrap
- Packages
- Runtime
- Events and context
- Objects
- HTTP routing and controllers
- Rendering
- Blade integration
- Database
- Models
- Storage and caching
- Settings
- CLI
- Identity and sessions
- Responses
- Errors
- Complete source inventory
Documentation notes