@loaders.gl/core
Version:
The core API for working with loaders.gl loaders and writers
18 lines (17 loc) • 494 B
JavaScript
// loaders.gl
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors
export class FetchError extends Error {
constructor(message, info) {
super(message);
this.reason = info.reason;
this.url = info.url;
this.response = info.response;
}
/** A best effort reason for why the fetch failed */
reason;
/** The URL that failed to load. Empty string if not available. */
url;
/** The Response object, if any. */
response;
}