OpenLayers v4.0.1 API - Class: AssertionError

# Class: AssertionError

This documentation is for OpenLayers v4.0.1. The latest is v.

## ol.AssertionError

  Error object thrown when an assertion failed. This is an ECMA-262 Error, extended with a `code` property.

  See:
    - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error

### Extends

- Error

### Members

#### code{number}

  Error code. The meaning of the code can be found on https://openlayers.org/en/latest/doc/errors/ (replace `latest` with the version found in the OpenLayers script's header comment if a version other than the latest is used).