@rowanmanning/feed-parser
Version:
A well-tested and resilient parser for RSS and Atom feeds
20 lines (17 loc) • 375 B
JavaScript
;
/**
* Class representing an invalid feed error.
*/
class InvalidFeedError extends Error {
/**
* Class constructor.
*
* @param {string} [message]
* The error message.
*/
constructor(message = 'The XML document could not be parsed as a feed') {
super(message);
this.code = 'INVALID_FEED';
}
}
exports.InvalidFeedError = InvalidFeedError;