constructor()

in src/errors/ResourceConflictError.ts [14:23]


    constructor(resourceType: string, id: string, message?: string) {
        const msg = message || `Resource ${resourceType}/${id} is conflicting`;
        // Node Error class requires passing a string message to the parent class.
        super(msg);
        Object.setPrototypeOf(this, ResourceConflictError.prototype);
        this.resourceType = resourceType;
        this.id = id;
        this.name = this.constructor.name;
        this.isResourceConflictError = true;
    }