<!-- 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) &gt; [causeToString](./rc-js-util.inestederror.causetostring.md)

## INestedError.causeToString() method

Attempt to serialize `causedBy`<!-- -->, where this is not possible, undefined is returned.

**Signature:**

```typescript
causeToString(): string | undefined;
```
**Returns:**

string \| undefined

