CannotCreateData
class CannotCreateData extends Exception
Methods
Create an exception for a source without a normalizer.
Create an exception for missing constructor arguments.
Create an exception for ordinary construction through a non-public constructor.
Create an exception for ordinary construction through a variadic constructor.
Create an exception for a missing unbound property value.
Create an exception for an automatic relation lazy without a model source.
Create an exception for an ambiguous data-object union.
Create an exception for a value no single container type of a union accepts.
Create an exception for a named factory that did not return the requested object.
Create an exception for an invalid after-creation replacement.
Details
at line 19
static CannotCreateData
noNormalizerFound(string $dataClass, mixed $value)
Create an exception for a source without a normalizer.
at line 32
static CannotCreateData
constructorMissingParameters(DataClass $dataClass, array $parameters)
Create an exception for missing constructor arguments.
at line 65
static CannotCreateData
nonPublicConstructor(DataClass $dataClass)
Create an exception for ordinary construction through a non-public constructor.
at line 79
static CannotCreateData
variadicConstructor(DataClass $dataClass)
Create an exception for ordinary construction through a variadic constructor.
at line 95
static CannotCreateData
propertyMissing(DataClass $dataClass, DataProperty $property)
Create an exception for a missing unbound property value.
at line 106
static CannotCreateData
autoWhenLoadedRequiresModel(DataProperty $property)
Create an exception for an automatic relation lazy without a model source.
at line 119
static CannotCreateData
ambiguousDataObjectUnion(DataProperty $property, array $candidates)
Create an exception for an ambiguous data-object union.
at line 135
static CannotCreateData
ambiguousContainerUnion(DataProperty $property, array $candidates)
Create an exception for a value no single container type of a union accepts.
at line 149
static CannotCreateData
invalidNamedFactoryResult(DataClass $dataClass, DataMethod $method, mixed $value)
Create an exception for a named factory that did not return the requested object.
at line 160
static CannotCreateData
invalidAfterCreationResult(DataClass $dataClass, mixed $value)
Create an exception for an invalid after-creation replacement.