constructor()

in src/errors/ResourceVersionNotFoundError.ts [16:26]


    constructor(resourceType: string, id: string, version: string, message?: string) {
        const msg = message || `Version "${version}" is not valid for resource ${resourceType}/${id}`;
        // Node Error class requires passing a string message to the parent class
        super(msg);
        Object.setPrototypeOf(this, ResourceVersionNotFoundError.prototype);
        this.resourceType = resourceType;
        this.id = id;
        this.version = version;
        this.name = this.constructor.name;
        this.isResourceVersionNotFoundError = true;
    }