<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [rc-js-util](./rc-js-util.md) &gt; [INestedError](./rc-js-util.inestederror.md)

## INestedError interface

An error which can have a chain of causes.

**Signature:**

```typescript
export interface INestedError<TLocalization> 
```

## Properties

<table><thead><tr><th>

Property


</th><th>

Modifiers


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

[causedBy](./rc-js-util.inestederror.causedby.md)


</td><td>

`readonly`


</td><td>

unknown


</td><td>


</td></tr>
<tr><td>

[stack](./rc-js-util.inestederror.stack.md)


</td><td>

`readonly`


</td><td>

string


</td><td>


</td></tr>
</tbody></table>

## Methods

<table><thead><tr><th>

Method


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

[causeToString()](./rc-js-util.inestederror.causetostring.md)


</td><td>

Attempt to serialize `causedBy`<!-- -->, where this is not possible, undefined is returned.


</td></tr>
<tr><td>

[composeErrorMessages()](./rc-js-util.inestederror.composeerrormessages.md)


</td><td>

Create a localized error message that describes what went wrong, and includes some minimal technical detail that's likely to describe the root cause.


</td></tr>
<tr><td>

[getMessage()](./rc-js-util.inestederror.getmessage.md)


</td><td>


</td></tr>
<tr><td>

[toString()](./rc-js-util.inestederror.tostring.md)


</td><td>

Stringifies the causes of the error, following the chain. This is intended for developers and includes stack traces at each step.


</td></tr>
</tbody></table>
