Overview
Normalization errors are thrown during the normalization phase when provider or entity definitions have invalid shapes. This phase converts raw decorator metadata into normalized internal records. All normalization errors are internal errors.Error Reference
MissingProvideError
Thrown when a provider/entity definition is missing theprovide token.
| Property | Type | Value |
|---|---|---|
code | string | MISSING_PROVIDE |
statusCode | number | 500 |
isPublic | boolean | false |
InvalidUseClassError
Thrown whenuseClass on a provider/entity is not a valid class (constructor function).
| Property | Type | Value |
|---|---|---|
code | string | INVALID_USE_CLASS |
statusCode | number | 500 |
isPublic | boolean | false |
InvalidUseFactoryError
Thrown whenuseFactory on a provider/entity is not a function.
| Property | Type | Value |
|---|---|---|
code | string | INVALID_USE_FACTORY |
statusCode | number | 500 |
isPublic | boolean | false |
InvalidUseValueError
Thrown whenuseValue on a provider/entity is undefined.
| Property | Type | Value |
|---|---|---|
code | string | INVALID_USE_VALUE |
statusCode | number | 500 |
isPublic | boolean | false |
InvalidEntityError
Thrown when an entity (tool, resource, adapter, etc.) has an invalid shape.| Property | Type | Value |
|---|---|---|
code | string | INVALID_ENTITY |
statusCode | number | 500 |
isPublic | boolean | false |