INNER CODE UNIT · JavaScript

ExternalPublisherError

shalvah/DownloadThisVideo · src/errors.js:3

class ExternalPublisherError extends Error {
    constructor(message, status) {
        super(message);
        this.name = 'ExternalPublisherError';
        this.status = status;
    }
}

class NoVideoInTweet extends Error {
    constructor(tweetObject) {
        super("Couldn't find any video in this tweet");
        this.name = 'NoVideoInTweet';
        this.tweetObject = tweetObject;
    }
}

module.exports = {
    ExternalPublisherError,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…