Skip to content

@loontail/minecraft-kit / MinecraftKitErrorContext

Type Alias: MinecraftKitErrorContext

ts
type MinecraftKitErrorContext = {
[key: string]: unknown;
  actualHash?: string;
  actualSize?: number;
  exitCode?: number;
  expectedHash?: string;
  expectedSize?: number;
  filePath?: string;
  httpStatus?: number;
  platform?: string;
  url?: string;
  version?: string;
};

Defined in: src/types/errors.ts:55

Structured context attached to errors. Always safe to serialize via JSON.stringify.

Indexable

ts
[key: string]: unknown

Properties

PropertyModifierTypeDefined in
actualHash?readonlystringsrc/types/errors.ts:59
actualSize?readonlynumbersrc/types/errors.ts:61
exitCode?readonlynumbersrc/types/errors.ts:63
expectedHash?readonlystringsrc/types/errors.ts:58
expectedSize?readonlynumbersrc/types/errors.ts:60
filePath?readonlystringsrc/types/errors.ts:57
httpStatus?readonlynumbersrc/types/errors.ts:62
platform?readonlystringsrc/types/errors.ts:64
url?readonlystringsrc/types/errors.ts:56
version?readonlystringsrc/types/errors.ts:65

MIT License