# Class: GeolocationError

This documentation is for OpenLayers v10.9.0. The latest is v.

## ol/Geolocation.GeolocationError

Events emitted on GeolocationPositionError.

### Extends

- BaseEvent

### Members

#### code{number}

  Code of the underlying `GeolocationPositionError`.

#### message{string}

  Message of the underlying `GeolocationPositionError`.

#### target{Object}

  The event target.

#### type{string}

  The event type.

### Methods

#### preventDefault() inherited

events/Event.js, line 50

  Prevent default. This means that no emulated `click`, `singleclick` or `doubleclick` events will be fired.

#### stopPropagation() inherited

events/Event.js, line 58

  Stop event propagation.

### Events

#### change inherited

events/EventType.js, line 10

  Generic change event. Triggered when the revision counter is increased.

#### error

Geolocation.js, line 34

  Triggered when a `GeolocationPositionError` occurs.