|
| 1 | +[ReactFire reference docs](../README.md) / [index](../modules/index.md) / ReactFireError |
| 2 | + |
| 3 | +# Class: ReactFireError |
| 4 | + |
| 5 | +[index](../modules/index.md).ReactFireError |
| 6 | + |
| 7 | +## Hierarchy |
| 8 | + |
| 9 | +* *Error* |
| 10 | + |
| 11 | + ↳ **ReactFireError** |
| 12 | + |
| 13 | +## Table of contents |
| 14 | + |
| 15 | +### Constructors |
| 16 | + |
| 17 | +- [constructor](index.reactfireerror.md#constructor) |
| 18 | + |
| 19 | +### Properties |
| 20 | + |
| 21 | +- [code](index.reactfireerror.md#code) |
| 22 | +- [customData](index.reactfireerror.md#customdata) |
| 23 | +- [message](index.reactfireerror.md#message) |
| 24 | +- [name](index.reactfireerror.md#name) |
| 25 | +- [stack](index.reactfireerror.md#stack) |
| 26 | +- [prepareStackTrace](index.reactfireerror.md#preparestacktrace) |
| 27 | +- [stackTraceLimit](index.reactfireerror.md#stacktracelimit) |
| 28 | + |
| 29 | +### Methods |
| 30 | + |
| 31 | +- [captureStackTrace](index.reactfireerror.md#capturestacktrace) |
| 32 | + |
| 33 | +## Constructors |
| 34 | + |
| 35 | +### constructor |
| 36 | + |
| 37 | +\+ **new ReactFireError**(`code`: *string*, `message`: *string*, `customData?`: *Record*<string, unknown\>): [*ReactFireError*](index.reactfireerror.md) |
| 38 | + |
| 39 | +#### Parameters: |
| 40 | + |
| 41 | +| Name | Type | |
| 42 | +| :------ | :------ | |
| 43 | +| `code` | *string* | |
| 44 | +| `message` | *string* | |
| 45 | +| `customData?` | *Record*<string, unknown\> | |
| 46 | + |
| 47 | +**Returns:** [*ReactFireError*](index.reactfireerror.md) |
| 48 | + |
| 49 | +Overrides: Error.constructor |
| 50 | + |
| 51 | +Defined in: [src/index.ts:11](https://github.com/FirebaseExtended/reactfire/blob/main/src/index.ts#L11) |
| 52 | + |
| 53 | +## Properties |
| 54 | + |
| 55 | +### code |
| 56 | + |
| 57 | +• `Readonly` **code**: *string* |
| 58 | + |
| 59 | +___ |
| 60 | + |
| 61 | +### customData |
| 62 | + |
| 63 | +• `Optional` **customData**: *Record*<string, unknown\> |
| 64 | + |
| 65 | +___ |
| 66 | + |
| 67 | +### message |
| 68 | + |
| 69 | +• **message**: *string* |
| 70 | + |
| 71 | +Inherited from: Error.message |
| 72 | + |
| 73 | +Defined in: node_modules/typescript/lib/lib.es5.d.ts:974 |
| 74 | + |
| 75 | +___ |
| 76 | + |
| 77 | +### name |
| 78 | + |
| 79 | +• `Readonly` **name**: ``"ReactFireError"``= 'ReactFireError' |
| 80 | + |
| 81 | +Overrides: Error.name |
| 82 | + |
| 83 | +Defined in: [src/index.ts:11](https://github.com/FirebaseExtended/reactfire/blob/main/src/index.ts#L11) |
| 84 | + |
| 85 | +___ |
| 86 | + |
| 87 | +### stack |
| 88 | + |
| 89 | +• `Optional` **stack**: *string* |
| 90 | + |
| 91 | +Inherited from: Error.stack |
| 92 | + |
| 93 | +Defined in: node_modules/typescript/lib/lib.es5.d.ts:975 |
| 94 | + |
| 95 | +___ |
| 96 | + |
| 97 | +### prepareStackTrace |
| 98 | + |
| 99 | +▪ `Static` `Optional` **prepareStackTrace**: (`err`: Error, `stackTraces`: CallSite[]) => *any* |
| 100 | + |
| 101 | +Optional override for formatting stack traces |
| 102 | + |
| 103 | +**`see`** https://v8.dev/docs/stack-trace-api#customizing-stack-traces |
| 104 | + |
| 105 | +#### Type declaration: |
| 106 | + |
| 107 | +▸ (`err`: Error, `stackTraces`: CallSite[]): *any* |
| 108 | + |
| 109 | +#### Parameters: |
| 110 | + |
| 111 | +| Name | Type | |
| 112 | +| :------ | :------ | |
| 113 | +| `err` | Error | |
| 114 | +| `stackTraces` | CallSite[] | |
| 115 | + |
| 116 | +**Returns:** *any* |
| 117 | + |
| 118 | +Defined in: node_modules/@types/node/globals.d.ts:11 |
| 119 | + |
| 120 | +Inherited from: Error.prepareStackTrace |
| 121 | + |
| 122 | +Defined in: node_modules/@types/node/globals.d.ts:11 |
| 123 | + |
| 124 | +___ |
| 125 | + |
| 126 | +### stackTraceLimit |
| 127 | + |
| 128 | +▪ `Static` **stackTraceLimit**: *number* |
| 129 | + |
| 130 | +Inherited from: Error.stackTraceLimit |
| 131 | + |
| 132 | +Defined in: node_modules/@types/node/globals.d.ts:13 |
| 133 | + |
| 134 | +## Methods |
| 135 | + |
| 136 | +### captureStackTrace |
| 137 | + |
| 138 | +▸ `Static`**captureStackTrace**(`targetObject`: *object*, `constructorOpt?`: Function): *void* |
| 139 | + |
| 140 | +Create .stack property on a target object |
| 141 | + |
| 142 | +#### Parameters: |
| 143 | + |
| 144 | +| Name | Type | |
| 145 | +| :------ | :------ | |
| 146 | +| `targetObject` | *object* | |
| 147 | +| `constructorOpt?` | Function | |
| 148 | + |
| 149 | +**Returns:** *void* |
| 150 | + |
| 151 | +Inherited from: Error.captureStackTrace |
| 152 | + |
| 153 | +Defined in: node_modules/@types/node/globals.d.ts:4 |
0 commit comments