# Class: Error

## (abstract) bemap.Error(options)

Base class for bemap error.

## Constructor

#### (abstract) new Error(options)

##### Parameters:

Name | Type | Description
--- | --- | ---
`options` | object | see below the available values. ###### Properties
Name | Type | Description
--- | --- | ---
`code` | String | the error code.
`message` | Int | the error message.

Source:
  - bemap-model/bemap-error.js, line 15

### Members

#### (protected) code :String

##### Type:

- String

Source:
  - bemap-model/bemap-error.js, line 22

#### (protected) message :String

##### Type:

- String

Source:
  - bemap-model/bemap-error.js, line 28

### Methods

#### getCode() → {String}

Get the code of the error.

Source:
  - bemap-model/bemap-error.js, line 35

##### Returns:

code

Type
  String

#### getMessage() → {String}

Get the message of the error.

Source:
  - bemap-model/bemap-error.js, line 43

##### Returns:

message

Type
  String