[**@sankhyalabs/core**](../README.md) • **Docs**

***

[@sankhyalabs/core](../globals.md) / SilentException

# Class: SilentException

`SilentException`: Exceção lançada quando uma exception silenciosa é.

## Extends

- `Error`

## Constructors

### new SilentException()

> **new SilentException**(`title`, `message`, `errorCode`): [`SilentException`](SilentException.md)

#### Parameters

• **title**: `string`= `""`

• **message**: `string`= `""`

• **errorCode**: `string`= `""`

#### Returns

[`SilentException`](SilentException.md)

#### Overrides

`Error.constructor`

#### Source

src/exceptions/SilentException.ts:18

## Properties

### cause?

> `optional` **cause**: `unknown`

#### Inherited from

`Error.cause`

#### Source

node\_modules/typescript/lib/lib.es2022.error.d.ts:26

***

### errorCode

> **errorCode**: `string`

Código do erro, indica o erro disparado pelo backend.

#### Source

src/exceptions/SilentException.ts:16

***

### message

> **message**: `string`

Descrição do erro.

#### Overrides

`Error.message`

#### Source

src/exceptions/SilentException.ts:13

***

### name

> **name**: `string`

Nome da exceção.

#### Overrides

`Error.name`

#### Source

src/exceptions/SilentException.ts:7

***

### stack?

> `optional` **stack**: `string`

#### Inherited from

`Error.stack`

#### Source

node\_modules/typescript/lib/lib.es5.d.ts:1055

***

### title

> **title**: `string`

Titulo do erro.

#### Source

src/exceptions/SilentException.ts:10

***

### prepareStackTrace()?

> `static` `optional` **prepareStackTrace**: (`err`, `stackTraces`) => `any`

Optional override for formatting stack traces

#### See

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

#### Parameters

• **err**: `Error`

• **stackTraces**: `CallSite`[]

#### Returns

`any`

#### Inherited from

`Error.prepareStackTrace`

#### Source

node\_modules/@types/node/globals.d.ts:27

***

### stackTraceLimit

> `static` **stackTraceLimit**: `number`

#### Inherited from

`Error.stackTraceLimit`

#### Source

node\_modules/@types/node/globals.d.ts:29

## Methods

### captureStackTrace()

> `static` **captureStackTrace**(`targetObject`, `constructorOpt`?): `void`

Create .stack property on a target object

#### Parameters

• **targetObject**: `object`

• **constructorOpt?**: `Function`

#### Returns

`void`

#### Inherited from

`Error.captureStackTrace`

#### Source

node\_modules/@types/node/globals.d.ts:20
