Skip to content

Internals Model Exceptions ModelCreationException

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

model\exceptions\ModelCreationException

Framework Internals · Subsystem overview · Developer guide

Source: awt_src/classes/model/exceptions/ModelCreationException.php · Snapshot 8411f4287706.

Models add hydration, persistence, relations, casts and attribute controls to DatabaseManager. Collections hydrate already fetched rows and provide iteration/counting.

Imports and dependencies

use exception\ExceptionBase;

ModelCreationException

Declaration and architectural role

class ModelCreationException extends ExceptionBase

Constants, enum cases, traits and properties

No own constants, enum cases, traits or property declarations. Inherited members are documented on the parent reference page.

Method index

Method Signature
buildMessage public function buildMessage(): string

buildMessage

Source line 10

public function buildMessage(): string

Return expressions (including local callbacks): "Model Exception: There was an error creating the model. Within {$this->context->contextName}.".

Implementation, validation guards and interaction order
public function buildMessage(): string
    {
        return "Model Exception: There was an error creating the model. Within {$this->context->contextName}.";
    }

Related types

Clone this wiki locally