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.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new FitsIoError(message, context?): FitsIoError;Defined in: errors.ts:79
Parameters
Section titled “Parameters”| 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 |
Returns
Section titled “Returns”FitsIoError
Overrides
Section titled “Overrides”Properties
Section titled “Properties”offset?
Section titled “offset?”readonly optional offset?: number;Defined in: errors.ts:77
Byte offset of the failing read, when applicable.
status?
Section titled “status?”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.