Class SyntaxError

Represents a syntax error.

Constructor Summary 

ConstructorDescription
SyntaxError()Constructs the error.
SyntaxError(String)Constructs the error with the specified message.

Method Summary 

Methods inherited from class Error 

captureStackTrace, toString

Methods inherited from class Object 

assign, create, create, defineProperties, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toLocaleString, toString, valueOf, values

Constructor Details 

SyntaxError() 

SyntaxError()

Constructs the error.


SyntaxError(String) 

SyntaxError(msg: String)

Constructs the error with the specified message.

Parameters:

  • msg - the syntax error message.

DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!