UNPKG

vitessce

Version:

Vitessce app and React component library

16 lines (13 loc) 462 B
import AbstractLoaderError from './AbstractLoaderError'; export default class DataSourceFetchError extends AbstractLoaderError { constructor(source, url, headers) { super(`${source} Error HTTP Status fetching from ${url}`); this.source = source; this.url = url; this.headers = headers; } warnInConsole() { const { source, url, headers } = this; console.warn(`${source} failed to fetch from ${url} with headers ${headers}`); } }