Skip to content

Module: src/util/DataError

DataError class, extending the native Error object. Used to distinguish if an Error was a data error.

Version
1.0.0
Author
Frank Kudermann - alphanull
License
MIT
Extends
Error
Source
DataError.js, line 10

Constructor

new DataError(message, options)

Creates an instance of ExtendedMediaError.

Parameters:
Name Type Description
message string

Custom Error message.

options Object

Additional options.

Parameters:
Name Type Description
cause number

Optional error cause.

code string

The error code for the simulated media error.

Members

Returns the media error code.

Returns

Error code (1,2,3,4 or 99).

Type number
Source
DataError.js, line 35