> ## Documentation Index
> Fetch the complete documentation index at: https://staging-docs.orderly.network/llms.txt
> Use this file to discover all available pages before exploring further.

# Orderly network types.ApiError

[Orderly SDKs](/sdks/tech-doc/README) / [Modules](/sdks/tech-doc/modules) / [@orderly.network/types](/sdks/tech-doc/modules/orderly_network_types) / ApiError

# Class: ApiError

[@orderly.network/types](/sdks/tech-doc/modules/orderly_network_types).ApiError

## Hierarchy

* `Error`

  ↳ **`ApiError`**

## Table of contents

### Constructors

* [constructor](/sdks/tech-doc/classes/orderly_network_types.ApiError#constructor)

### Properties

* [code](/sdks/tech-doc/classes/orderly_network_types.ApiError#code)
* [message](/sdks/tech-doc/classes/orderly_network_types.ApiError#message)
* [name](/sdks/tech-doc/classes/orderly_network_types.ApiError#name)
* [stack](/sdks/tech-doc/classes/orderly_network_types.ApiError#stack)

## Constructors

### constructor

• **new ApiError**(`message`, `code`)

#### Parameters

| Name | Type |
| :- | :- |
| `message` | `string` |
| `code` | `number` |

#### Overrides

Error.constructor

#### Defined in

[packages/types/src/errors.ts:2](https://github.com/OrderlyNetwork/js-sdk/blob/ba995f2/packages/types/src/errors.ts#L2)

## Properties

### code

• `Private` `Readonly` **code**: `number`

#### Defined in

[packages/types/src/errors.ts:2](https://github.com/OrderlyNetwork/js-sdk/blob/ba995f2/packages/types/src/errors.ts#L2)

***

### message

• **message**: `string`

#### Inherited from

Error.message

#### Defined in

node\_modules/.pnpm/typescript\@5.1.6/node\_modules/typescript/lib/lib.es5.d.ts:1068

***

### name

• **name**: `string`

#### Inherited from

Error.name

#### Defined in

node\_modules/.pnpm/typescript\@5.1.6/node\_modules/typescript/lib/lib.es5.d.ts:1067

***

### stack

• `Optional` **stack**: `string`

#### Inherited from

Error.stack

#### Defined in

node\_modules/.pnpm/typescript\@5.1.6/node\_modules/typescript/lib/lib.es5.d.ts:1069


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.