diff --git a/api/ICAL.parse.ParserError.html b/api/ICAL.parse.ParserError.html index 49fba71c..b2aa6ed3 100644 --- a/api/ICAL.parse.ParserError.html +++ b/api/ICAL.parse.ParserError.html @@ -1,3 +1,3 @@ Class: ParserError
On this page

ParserError

An error that occurred during parsing.

Constructor

new ParserError(message)

Parameters:
NameTypeDescription
messageString

The error message

Extends

  • Error
Home
\ No newline at end of file +
On this page

ParserError

An error that occurred during parsing.

Constructor

new ParserError(message)

Parameters:
NameTypeDescription
messageString

The error message

Extends

  • Error
Home
\ No newline at end of file diff --git a/api/parse.js.html b/api/parse.js.html index 3c1903ba..4437abb6 100644 --- a/api/parse.js.html +++ b/api/parse.js.html @@ -95,22 +95,8 @@ * @extends {Error} * @class */ - class ParserError extends Error { - constructor(message) { - super(message); - this.name = this.constructor.name; - - try { - throw new Error(); - } catch (e) { - if (e.stack) { - let split = e.stack.split('\n'); - split.shift(); - this.stack = split.join('\n'); - } - } - } + name = this.constructor.name; } // classes & constants