@loopback/docs
Version:
Documentation for LoopBack 4
32 lines (21 loc) • 970 B
Markdown
lang: en
title: 'API docs: repository.entitynotfounderror._constructor_'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.repository.entitynotfounderror._constructor_.html
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/repository](./repository.md) > [EntityNotFoundError](./repository.entitynotfounderror.md) > [(constructor)](./repository.entitynotfounderror._constructor_.md)
## EntityNotFoundError._constructor_
Constructs a new instance of the `EntityNotFoundError` class
<b>Signature:</b>
```typescript
constructor(entityOrName: typeof Entity | string, entityId: ID, extraProperties?: Props);
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| entityOrName | <code>typeof Entity | string</code> | |
| entityId | <code>ID</code> | |
| extraProperties | <code>Props</code> | |