export class ProbeNameCollisionError extends Error {
    probeName;
    constructor(probeName) {
        super(`Probe name "${probeName}" is already registered. Pass { override: true } to replace, or pick a different name.`);
        this.name = 'ProbeNameCollisionError';
        this.probeName = probeName;
    }
}
export class ProbeVetoError extends Error {
    probeName;
    reason;
    eventKind;
    constructor(probeName, reason, eventKind) {
        super(`Operation denied by probe "${probeName}" on ${eventKind}: ${reason}`);
        this.name = 'ProbeVetoError';
        this.probeName = probeName;
        this.reason = reason;
        this.eventKind = eventKind;
    }
}
//# sourceMappingURL=errors.js.map