UNB/ CS/ David Bremner/ teaching/ cs2613/ books/ mdn/ Reference/ Global Objects/ InternalError/ InternalError() constructor

The InternalError() constructor creates InternalError objects.

Syntax

new InternalError()
new InternalError(message)
new InternalError(message, options)
new InternalError(message, fileName)
new InternalError(message, fileName, lineNumber)

InternalError()
InternalError(message)
InternalError(message, options)
InternalError(message, fileName)
InternalError(message, fileName, lineNumber)

Note: InternalError() can be called with or without new. Both create a new InternalError instance.

Parameters

Examples

Creating a new InternalError

new InternalError("Engine failure");

Specifications

Not part of any standard.

Browser compatibility

See also