---
lang: en
title: 'API docs: repository.entitynotfounderror'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/strongloop/loopback-next/tree/master/packages/repository
permalink: /doc/en/lb4/apidocs.repository.entitynotfounderror.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/repository](./repository.md) &gt; [EntityNotFoundError](./repository.entitynotfounderror.md)

## EntityNotFoundError class

<b>Signature:</b>

```typescript
export declare class EntityNotFoundError<ID, Props extends object = {}> extends Error 
```
<b>Extends:</b> Error

## Constructors

|  Constructor | Modifiers | Description |
|  --- | --- | --- |
|  [(constructor)(entityOrName, entityId, extraProperties)](./repository.entitynotfounderror._constructor_.md) |  | Constructs a new instance of the <code>EntityNotFoundError</code> class |

## Properties

|  Property | Modifiers | Type | Description |
|  --- | --- | --- | --- |
|  [code](./repository.entitynotfounderror.code.md) |  | string |  |
|  [entityId](./repository.entitynotfounderror.entityid.md) |  | ID |  |
|  [entityName](./repository.entitynotfounderror.entityname.md) |  | string |  |


