Skip to the content

Chikyu Earth地球

A line-drawn globe of the world's countries that turns at the Earth's own rate, with an optional realistic Earth from space and markers for any place.

Chikyu is the Japanese word 地球 for the Earth. About the name

Contents

Reference · Satellites: orbital elements in, positions out

ElementSourceErrorclass

Why a source could not be used: the address was refused before any request, the source answered something other than 200 (and will not be asked again for a while), the answer was too big, or it could not be read.

Import it

import { ElementSourceError } from "@johnmorrisdotca/chikyu-earth/satellites";

Definition

class ElementSourceError
new ElementSourceError(message: string, details?: { status?: number; retryAt?: number; }): ElementSourceError

Parameters

NameTypeDescription
messagestring

What went wrong, in a sentence.

details (optional){ status?: number; retryAt?: number; }

The HTTP status the source answered and when it may be asked again, when they are known.

Members

NameTypeDescription
statusnumber | undefined

The HTTP status the source answered, when it answered.

retryAtnumber | undefined

When, in milliseconds since the Unix epoch, the source may be asked again (it is not asked before).

namestring
messagestring
stack (optional)string | undefined
cause (optional)unknown

Examples

import { ElementSourceError } from "@johnmorrisdotca/chikyu-earth/satellites";

const error = new ElementSourceError("refused", { status: 403 });
console.log(error.status);
403

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/chikyu-earth 0.51.1.