Skip to content

SaveError beta ​

Class of @v12-engine/engine

ts
export declare class SaveError extends Error

A save that is not loaded, and why: for a list of saves to say, in words of its own

Members ​

constructor ​

ts
constructor(message: string, 
    reason: SaveRefusal, 
    missing?: SaveMissing | undefined);

Constructs a new instance of the SaveError class

missing ​

ts
readonly missing?: SaveMissing | undefined;

For missing: what the save has that the game does not

reason ​

ts
readonly reason: SaveRefusal;

Why the save was refused, as a SaveRefusal