# GeometryError

The only error the geometry helpers throw.

This is a class exported by `@mapcairn/core`, checked against version 0.2.0.

## Signature

```ts
import { GeometryError } from "@mapcairn/core";
 
class GeometryError extends Error
```

## Constructors

### (constructor)

```ts
constructor(kind: GeometryErrorKind, message?: string | Message);
```

Constructs a new instance of the `GeometryError` class

- `kind` (`GeometryErrorKind`)
- `message?` (`string | Message`)

## Properties

### description

```ts
readonly description: Message | undefined;
```

What went wrong as a message to format with the active catalogue, when the
fault is one a person can act on (a fault in WKT text they typed or
opened). `message` carries the same words in English, for logs.

### kind

```ts
readonly kind: GeometryErrorKind;
```

Which rule the input broke: `invalid`, `empty` or `unsupported`.

## See also

- [`GeometryErrorKind`](https://docs.mapcairn.com/api/core/GeometryErrorKind.md)
- [`Message`](https://docs.mapcairn.com/api/core/Message-typealias.md)

Source: [packages/core/src/geometry/errors.ts:23](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/geometry/errors.ts#L23)
