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

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/context](./context.md) &gt; [ResolutionError](./context.resolutionerror.md) &gt; [(constructor)](./context.resolutionerror._constructor_.md)

## ResolutionError.(constructor)

Constructs a new instance of the `ResolutionError` class

**Signature:**

```typescript
constructor(message: string, resolutionCtx: Partial<ResolutionContext>);
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td markdown="1">

message


</td><td markdown="1">

string


</td><td markdown="1">


</td></tr>
<tr><td markdown="1">

resolutionCtx


</td><td markdown="1">

Partial&lt;[ResolutionContext](./context.resolutioncontext.md)<!-- -->&gt;


</td><td markdown="1">


</td></tr>
</tbody></table>


