Interface SyntaxErrorConstructor
interface SyntaxErrorConstructor {
new SyntaxErrorConstructor(message?: string): SyntaxError;
new SyntaxErrorConstructor(
message?: string,
options?: ErrorOptions,
): SyntaxError;
new SyntaxErrorConstructor(message?: string): Error;
new SyntaxErrorConstructor(message?: string, options?: ErrorOptions): Error;
prototype: SyntaxError;
(message?: string): SyntaxError;
(message?: string, options?: ErrorOptions): SyntaxError;
(message?: string): Error;
(message?: string, options?: ErrorOptions): Error;
}
new SyntaxErrorConstructor(message?: string): SyntaxError;
new SyntaxErrorConstructor(
message?: string,
options?: ErrorOptions,
): SyntaxError;
new SyntaxErrorConstructor(message?: string): Error;
new SyntaxErrorConstructor(message?: string, options?: ErrorOptions): Error;
prototype: SyntaxError;
(message?: string): SyntaxError;
(message?: string, options?: ErrorOptions): SyntaxError;
(message?: string): Error;
(message?: string, options?: ErrorOptions): Error;
}
Hierarchy
- ErrorConstructor
- SyntaxErrorConstructor (View Summary)
- SyntaxErrorConstructor(message?: string): SyntaxError
Parameters
Optional
message: string
Returns SyntaxError
- SyntaxErrorConstructor(message?: string, options?: ErrorOptions): SyntaxError
Parameters
Optional
message: stringOptional
options: ErrorOptions
Returns SyntaxError
- SyntaxErrorConstructor(message?: string): Error
Parameters
Optional
message: string
Returns Error
- SyntaxErrorConstructor(message?: string, options?: ErrorOptions): Error
Parameters
Optional
message: stringOptional
options: ErrorOptions
Returns Error
Index
Constructors
Properties
Constructors
constructor
- new SyntaxErrorConstructor(message?: string): SyntaxError
Parameters
Optional
message: string
Returns SyntaxError
- new SyntaxErrorConstructor(
message?: string,
options?: ErrorOptions,
): SyntaxError Parameters
Optional
message: stringOptional
options: ErrorOptions
Returns SyntaxError
- new SyntaxErrorConstructor(message?: string): Error
Parameters
Optional
message: string
Returns Error
- new SyntaxErrorConstructor(message?: string, options?: ErrorOptions): Error
Parameters
Optional
message: stringOptional
options: ErrorOptions
Returns Error