Skip to content

FitsIoError

Defined in: errors.ts:71

A byte source could not be read: an invalid range, an HTTP error, or a filesystem failure behind a RandomAccessReader. The structured fields let callers distinguish a 404 from a range error without string-matching.

new FitsIoError(message, context?): FitsIoError;

Defined in: errors.ts:79

Parameter Type
message string
context? { cause?: unknown; offset?: number; status?: number; url?: string; }
context.cause? unknown
context.offset? number
context.status? number
context.url? string

FitsIoError

FitsError.constructor

readonly optional offset?: number;

Defined in: errors.ts:77

Byte offset of the failing read, when applicable.


readonly optional status?: number;

Defined in: errors.ts:75

HTTP status, when the failure came from a response.


readonly optional url?: string;

Defined in: errors.ts:73

Source URL or path, when applicable.