Fork me on GitHub
Show:

GeolocateServiceError

Summary

Constructor

aeris.geolocate.errors.GeolocateServiceError

Syntax

aeris.geolocate.errors.GeolocateServiceError

(
  • errorObj
)

Summary

Parameters:

Methods

code

Syntax

code

()

Summary

Error code.

PERMISSION_DENIED

Syntax

PERMISSION_DENIED

()

Summary

Permission denied error code The user did not allow Geolocation.

POSITION_UNAVAILABLE

Syntax

POSITION_UNAVAILABLE

()

Summary

Position unavailable error code It is not possible to get the current location

setMessage

Syntax

setMessage

(
  • message
)
String

Summary

Set the error message

Parameters:

  • message String

    Message passed into constructor.

Returns:

String:

Error message.

setName

Syntax

setName

() String

Summary

Set the name of the error.

Returns:

String:

Error name.

TIMEOUT

Syntax

TIMEOUT

()

Summary

Timeout error code The geolocation operation timed out.

toString

Syntax

toString

() String

Summary

Determines how error is displayed in (some) browser consoles

Returns:

Properties

message

Syntax

message

String

Summary

The error message to throw.

name

Syntax

name

String

Summary

The error's name. Should equal the class name, by convention.