> Documentation index: https://www.gooddata.ai/docs/gooddata-ui/llms.txt lists every page of these docs as Markdown.

# GoodDataSdkError

- Package: [@gooddata/sdk-ui](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui/index.md)
- Kind: class
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-ui/src/base/errors/GoodDataSdkError.ts
- Guides: [Handle errors](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/interactivity/handle-errors/index.md)

Base class for all anticipated GoodData.UI SDK errors.

**Signature:**

```typescript
export declare abstract class GoodDataSdkError extends Error 
```
**Extends:** Error

## Properties

| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [cause?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui/sdk-ui.gooddatasdkerror/index.md#gooddatasdkerrorcause) | `readonly` | any | _(Optional)_ |
| [seType](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui/sdk-ui.gooddatasdkerror/index.md#gooddatasdkerrorsetype) | `readonly` | [SdkErrorType](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui/sdk-ui.sdkerrortype/index.md) |  |

## Methods

| Method | Modifiers | Description |
| --- | --- | --- |
| [getCause()](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui/sdk-ui.gooddatasdkerror/index.md#gooddatasdkerrorgetcause) |  | Underlying cause of this error (if any). |
| [getErrorCode()](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui/sdk-ui.gooddatasdkerror/index.md#gooddatasdkerrorgeterrorcode) |  | Error code for this exception. |
| [getMessage()](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui/sdk-ui.gooddatasdkerror/index.md#gooddatasdkerrorgetmessage) |  | Provides description of the problem or one of [ErrorCodes](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui/sdk-ui.errorcodes/index.md). |

## Property details

### GoodDataSdkError.cause

**Signature:**

```typescript
readonly cause?: any;
```

### GoodDataSdkError.seType

**Signature:**

```typescript
readonly seType: SdkErrorType;
```

## Method details

### GoodDataSdkError.getCause()

Underlying cause of this error (if any).

**Signature:**

```typescript
getCause(): any;
```
**Returns:**

any

### GoodDataSdkError.getErrorCode()

Error code for this exception.

**Signature:**

```typescript
getErrorCode(): string;
```
**Returns:**

string

#### Remarks

This can be used to identify exact type of exception.

### GoodDataSdkError.getMessage()

Provides description of the problem or one of [ErrorCodes](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui/sdk-ui.errorcodes/index.md).

**Signature:**

```typescript
getMessage(): string;
```
**Returns:**

string
