Class: TerriaError

TerriaError(options)

new TerriaError(options)

Represents an error that occurred in a TerriaJS module, especially an asynchronous one that cannot be raised by throwing an exception because no one would be able to catch it.

Parameters:
Name Type Description
options Object

Object with the following properties:

Properties
Name Type Attributes Default Description
sender Object <optional>

The object raising the error.

title String <optional>
'An error occurred'

A short title describing the error.

message String

A detailed message describing the error. This message may be HTML and it should be sanitized before display to the user.

Source:

Members

message :String

Gets or sets a metailed message describing the error. This message may be HTML and it should be sanitized before display to the user.

Type:
  • String
Source:

raisedToUser :Boolean

True if the user has seen this error; otherwise, false.

Type:
  • Boolean
Default Value:
  • false
Source:

sender :Object

Gets or sets the object that raised the error.

Type:
  • Object
Source:

title :String

Gets or sets a short title describing the error.

Type:
  • String
Source: